EasyUI Forum
November 05, 2025, 11:26:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid - Display Foreign Key TextField  (Read 10170 times)
TheMandrake
Newbie
*
Posts: 1


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
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!