EasyUI Forum
April 23, 2024, 07:58:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: update the datagrid data but record the state
datagrid - 0 (0%)
scroll - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: update the datagrid data but record the state  (Read 4417 times)
gunmo
Newbie
*
Posts: 5


View Profile Email
« 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!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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'
}
});
Logged
gunmo
Newbie
*
Posts: 5


View Profile Email
« Reply #2 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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.
Logged
gunmo
Newbie
*
Posts: 5


View Profile Email
« Reply #4 on: January 05, 2017, 02:05:27 AM »

Thanks for your help.I will have a try!!
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!