EasyUI Forum
May 07, 2024, 05:18:08 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: Virtual Scrolling for TreeGrid  (Read 11333 times)
jumple
Newbie
*
Posts: 4


View Profile Email
« on: May 22, 2014, 12:35:18 PM »

Is there an implementation for Virtual Scrolling on TreeGrid similar to DataGrid?
« Last Edit: May 22, 2014, 12:50:47 PM by jumple » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: May 22, 2014, 05:02:33 PM »

No virtual scrollview exists for the treegrid but you can achieve a dynamic loading treegrid that helps to load rows from server in parts and avoid long waits to load huge data. For more information please visit http://www.jeasyui.com/tutorial/tree/treegrid3.php.
Logged
jumple
Newbie
*
Posts: 4


View Profile Email
« Reply #2 on: May 23, 2014, 08:45:09 AM »

The problem with this is that even with dynamic loading after loading several nodes with hundreds of records in them - the page will become slow as dom nodes will keep growing -  i have a dataset with 10 or more parent nodes with 300-400 records inside each - so after expanding several nodes the resulting treegrid will have to hold thousands of records and the page will become slow even if i load children dynamically...
Is there any suggestion to overcome this?
Logged
creazyboy
Newbie
*
Posts: 3


View Profile Email
« Reply #3 on: July 03, 2014, 08:03:00 PM »

Hi, I also have this problem. Does this problem solved?
Logged
jumple
Newbie
*
Posts: 4


View Profile Email
« Reply #4 on: July 04, 2014, 12:00:32 PM »

Hi, I also have this problem. Does this problem solved?

Doesn't seem that way.... looks like a show-stopper for me
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #5 on: July 04, 2014, 07:23:43 PM »

You can try some ways as described below to improve some performance.

1. Use pagination, this may be the most popular way to solve this issue.
2. Set 'autoRowHeight:false,rownumbers:false,frozenColumns:null,nowrap:true' properties for a treegrid can increment some performance.
3. To load large data at a time, you also can override the treegrid view.  In this solution, the '.html()' is replaced as 'innerHTML=...', this will improve loading performance.

Please refer to the attached example 'test.html', it load more than 3 thousands quickly. Of course, the loading performance will decrease with more and more records. You may need to find out other solution to prevent from loading too large data in a time regarding your business logic.
Logged
Bruce Lee
Newbie
*
Posts: 2


View Profile Email
« Reply #6 on: December 18, 2014, 05:53:41 PM »

Hi, I also have this problem. Does this problem solved?thank you
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!