EasyUI Forum
May 07, 2024, 02:20:06 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: Editable Data Grid : Update column with edit target on endEditing  (Read 7324 times)
arma
Full Member
***
Posts: 110


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!