EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gunmo on January 04, 2017, 05:14:27 PM



Title: update the datagrid data but record the state
Post by: gunmo on January 04, 2017, 05:14:27 PM
I've updated the datagrid data use the "updaterow" method,but it will have no response with a little more data,and when I use the "loadData" method,it can not record the scroll position and scroll to the top,could you please help me?I want to update the data and hold the scroll position. 3q!


Title: Re: update the datagrid data but record the state
Post by: stworthy on January 04, 2017, 08:15:07 PM
Please call 'updateRow' method to update your datagrid row.
Code:
$('#dg').datagrid('updateRow',{
index: 2,
row: {
name: 'new name',
note: 'new note message'
}
});


Title: Re: update the datagrid data but record the state
Post by: gunmo on January 04, 2017, 10:31:02 PM
Thanks a lot for you help.I've used the method you mentioned,it works well when it loads only a little data,but the page will be no response when it loads a little more data.Are there any other methods?


Title: Re: update the datagrid data but record the state
Post by: stworthy on January 05, 2017, 01:32:12 AM
If you wish to display millions of rows on a datagrid, you should display them page by page, or use the virtual scrolling view.


Title: Re: update the datagrid data but record the state
Post by: gunmo on January 05, 2017, 02:05:27 AM
Thanks for your help.I will have a try!!