EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Opan Mustopah on January 01, 2015, 11:05:35 PM



Title: editor combogrid on datagrid won't fill column with real value
Post by: Opan Mustopah 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




Title: Re: editor combogrid on datagrid won't fill column with real value
Post by: stworthy 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.