EasyUI Forum
November 05, 2025, 08:32:42 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: editor combogrid on datagrid won't fill column with real value  (Read 7029 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« on: January 01, 2015, 11:05:35 PM »

hello again,

i have a problem with combogrid editor on datagrid, like title said's,
see pic editable datagrid.png

on that pic has already columns name ID group, organization base, and themes right? .
all those three columns is using combogrid editor on datagrid. and all of them is lookup or it means they request data from server.

just get one field for example, i'll get themes column,
said themes is request from server and i set idField with 'theme_id' then textField with 'theme_name' on combogrid options on datagrid.
example data :
theme_id   theme_name
1               default
2               ui-cupertino

when i choose 'default' on combogrid options, combogrid value will change into '1' right? and so on. and then save the record, no problem until here.

but when i want to edit that record, example 'MASTERROOT' on that pic, themes columns won't load value with theme_id, but with theme_name. if we wan't change themes column value we must choose the options again and value will change. how to fix this?

i need for all combogrid editor on datagrid is contains value just like when he created (value always fill with theme_id, and text is theme_name). is it clear? sorry for my confusing explanation for me. hope you guys understand what i want.

thanks in advance


Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 02, 2015, 08:20:24 AM »

You may need to show some code snippets to describe how you define the datagrid and combogrid editors.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!