|
Title: Editable Data Grid : Update column with edit target on endEditing Post by: arma 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? Title: Re: Editable Data Grid : Update column with edit target on endEditing Post by: stworthy 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
|