EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 01:16:10 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
>
General Discussion
>
unexpected datagrid behaviour after reload
Pages: [
1
]
« previous
next »
Print
Author
Topic: unexpected datagrid behaviour after reload (Read 11414 times)
wymak
Newbie
Posts: 26
unexpected datagrid behaviour after reload
«
on:
March 03, 2013, 08:09:51 AM »
In a datagrid, I write an 'afterEdit' event handler, why the reloaded grid did not reflect the change in row data?
onAfterEdit: function(rowIndex, rowData, changes) {
// reload the grid
$('#dg').edatagrid('reload');
// select back the row
$('#dg').edatagrid('selectRow', rowIndex);
// fetch that row from the updated grid
var row = $('#dg').edatagrid('getSelected');
alert(rowData.tx); // show the new updated value
alert(row.tx); // show the old value!!!
}
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...