EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 07, 2024, 02:20:06 PM
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
>
Editable Data Grid : Update column with edit target on endEditing
Pages: [
1
]
« previous
next »
Print
Author
Topic: Editable Data Grid : Update column with edit target on endEditing (Read 7324 times)
arma
Full Member
Posts: 110
Editable Data Grid : Update column with edit target on endEditing
«
on:
October 23, 2013, 10:06:08 PM »
I have this grid :
------------------------------------------------
| Product ID | Description |
------------------------------------------------
| Not Editable | Editable Combobox |
------------------------------------------------
Only column description editable. When appendRow user can choose from product description via combobox. On endEditing() the product id from combobox will show product id code. The description column should show description not product id.
grid.datagrid('getRows')[index]['product_id'] = $(ed.target).combobox('getValue'); //this works
grid.datagrid('getRows')[index]['description'] = $(ed.target).combobox('getText'); //this does not work
How could i make column description displays product description not product id?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Editable Data Grid : Update column with edit target on endEditing
«
Reply #1 on:
October 24, 2013, 01:18:06 AM »
Please refer to this example
http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Row%20Editing%20in%20DataGrid
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...