EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 06, 2025, 01:32:17 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Datagrid - Display Foreign Key TextField
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid - Display Foreign Key TextField (Read 10172 times)
TheMandrake
Newbie
Posts: 1
Datagrid - Display Foreign Key TextField
«
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
Re: Datagrid - Display Foreign Key TextField
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...