EasyUI Forum
May 16, 2024, 04:15:36 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Performance problem with "datgrid:detailview"  (Read 6431 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« on: September 02, 2015, 05:18:29 AM »

Hi all,

I am experiencing some performance problems when using "view: detailview" in a datagrid.

As you can see in the following graph without "detailview" the response time is very good.
When using "view: detailview" the response time is 6 times slower.

In firefox the default value of max_script_run_time is 10 seconds.
This means that if I want to display more the 5000 lines I must increase the value of max_script_run_time.


Is this a bug ?
Is it possible to speed up the process ?

Thanks in advance
Miche

« Last Edit: September 02, 2015, 06:30:46 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 02, 2015, 05:15:34 PM »

How do you define your detail view? Please show an example to demonstrate your issue. If you are displaying large rows without pagination, please try to use the scrollview.
http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Virtual%20Scroll%20View(Detail%20Rows)
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #2 on: September 03, 2015, 07:10:45 AM »

Hi stworthy,

in all my datagrids I use pagination.
But in this example I must display all the rows in order to print them.

Here the first example without "view: datailview".
As you can verify the responde time is very good.
http://195.144.40.170/BBB/file1.html

And here the second example with "view: datailview".
http://195.144.40.170/BBB/file2.html

Thanks in advance for your help.
Miche
« Last Edit: September 03, 2015, 07:12:17 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: September 03, 2015, 06:08:13 PM »

Please define an expander column in 'columns' to improve rendering speed.
Code:
columns: [[
{field:'_expander',expander:true,width:24,fixed:true},
{field:'Assetnum',title:'Apparecchiatura',width:25,editor:'text',sortable:true}
]],
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #4 on: September 04, 2015, 04:47:29 AM »

Hi  stworthy ,

as you can verify with the following link, after implementing your solution, the response time is better:
http://195.144.40.170/BBB/file3.html

Instead of 27 sec, now the response time is only 15 sec.

Thanks a lot !

Miche
« Last Edit: September 04, 2015, 04:49:26 AM by rezzonico » 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!