EasyUI Forum
May 14, 2024, 02:09:07 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: Poor performance with large row or column count  (Read 18604 times)
pacific202
Newbie
*
Posts: 35


View Profile
« on: November 28, 2011, 12:11:32 PM »

I'm getting excessive load times and unresponsive script errors when I try to load a datagrid with 22 columns (plus one checkbox) and 272 rows.  My grids won't ever get much larger than this so I am at the upper bound of size requirements.

Is there anything I can do to improve speed and stability?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 28, 2011, 06:19:51 PM »

Paging is the easiest way to manage large rows within the datagrid. Set 'pagination' property to true to allow datagrid paging.
Logged
pacific202
Newbie
*
Posts: 35


View Profile
« Reply #2 on: November 28, 2011, 07:52:57 PM »

Thanks for the quick reply.

I did set pagination=true as an experiment this morning, it picked up the correct number of pages but still displayed all 270+ rows.

Is there something else I need to do to make that work?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: November 28, 2011, 08:04:27 PM »

Please refer to this tutorial http://www.jeasyui.com/tutorial/datagrid/datagrid2.php.

In your server, you will get 'page' and 'rows' request parameters. You should return exactly 'rows' records to browser not all records.
Logged
pacific202
Newbie
*
Posts: 35


View Profile
« Reply #4 on: November 28, 2011, 09:04:44 PM »

Unfortunately that's not an option for me - the server API is restricted.

I have limited the grid to four columns and it is now loading quickly.  I can work around this.
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!