|
Title: Datagrid - Display Foreign Key TextField Post by: TheMandrake on January 26, 2013, 08:55:09 AM Hi,
- I use the jeasyui datagrid who has an request with a table who contain a foreign key. - When i bind to the datatable and show it, the valuefield display and not the textfield. - How i can do to show the textfield value for the foreign key? .... <div class="fitem"> <label>Users:</label> <input name="users" class="easyui-combobox" data-options=" url:'qusers_get.php', valueField:'id', textField:'login', panelHeight:'auto' "/> </div> ... Thanks for your response. Bye Title: Re: Datagrid - Display Foreign Key TextField Post by: stworthy on January 27, 2013, 12:19:40 AM Try using the formatter function to display text field value. Please refer to http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Row%20Editing%20DataGrid to learn how to format 'productid' field.
|