EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on September 02, 2015, 05:18:29 AM



Title: Performance problem with "datgrid:detailview"
Post by: rezzonico 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

(http://195.144.40.170/AAA/datagrid.jpg)


Title: Re: Performance problem with "datgrid:detailview"
Post by: stworthy 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)


Title: Re: Performance problem with "datgrid:detailview"
Post by: rezzonico 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


Title: Re: Performance problem with "datgrid:detailview"
Post by: stworthy 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}
]],


Title: Re: Performance problem with "datgrid:detailview"
Post by: rezzonico 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