Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
How to handle tree grid with large data sets?
21/01/2010
16:35
Avatar
Alex Alexapolsky
Guest
Guests

I am using jqGrid 3.6.2 with TreeGrid.

It loads well when record number is < 200.

If I have around 400 - FireFoxs tells me that script is handing and needs to be stopped.

Reading that there is gridview option for regular grid to speed up, I still hope this will be supported for treegrid too.

Will it? If no, I'd be greatful to hear any solutions or hits on how to speed up the jqGrid with TreeGrid.

P.S.

Btw, pager would help us divide datasets into smaller chuncks, but documentation says "Pager functionality currently disabled for treeGrid" Frown. The only solution I can think of is to somehow emulate page functionality outside of jqgrid.

22/01/2010
12:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Alex,

This is true. Using large data in tree grid currently is not recommended.

We work on this and hope to resolve the problem.

Also I recommend you to use autoloading tree nodes - i.e first load a minilal nodes (only roots) and then when the user click on some node the data will be loaded from the server. Using this approach pager is not needed. Also pagging with tree nodes is a little bit difficult, since we can have a lot of situations which should be consider.

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

22/01/2010
13:26
Avatar
Alex Alexapolsky
Guest
Guests

Thanks for reply, Tony. Indeed, in this case autoloading is the solution.

08/02/2010
06:58
Avatar
Jam
New Member
Members
Forum Posts: 1
Member Since:
08/02/2010
sp_UserOfflineSmall Offline

I need to load large data in treegrid, too. (about 500 rows)

So I want to use autoloading tree node, but I don't know how to construct that tree.

Please give me some autoloading tree-side sample or method in jquery.

09/02/2010
11:41
Avatar
william
New Member
Members
Forum Posts: 2
Member Since:
09/02/2010
sp_UserOfflineSmall Offline

t loads well when record number is < 200.

If I have around 400 – FireFoxs tells me that script is handing and needs to be stopped.

Reading that there is gridview option for regular grid to speed up, I still hope this will be supported for treegrid too.

Will it? If no, I'd be greatful to hear any solutions or hits on how to speed up the jqGrid with TreeGrid.

-------------------------------------------------

itil training

09/02/2010
11:41
Avatar
william
New Member
Members
Forum Posts: 2
Member Since:
09/02/2010
sp_UserOfflineSmall Offline

t loads well when record number is < 200.

If I have around 400 – FireFoxs tells me that script is handing and needs to be stopped.

Reading that there is gridview option for regular grid to speed up, I still hope this will be supported for treegrid too.

Will it? If no, I'd be greatful to hear any solutions or hits on how to speed up the jqGrid with TreeGrid.

-------------------------------------------------

itil training

10/02/2010
15:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Will see what I can do.

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

04/03/2011
16:36
Avatar
TAlex
Member
Members
Forum Posts: 5
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

Hello Tony,

I have the same request of a treegrid example with autoloading tree nodes.

I am trying to do something like this.

- First I load the adjacency grid with the data from an 'url' and 'postData' returned on 'serializeGridData' event.

- OnSelectRow i change with 'setGridParam' the 'url' and the 'postData' and then trigger("reloadGrid")

When I click on the row, the data from the new url overrides the data from the old url so the parent node disapeares.

The order of events is OnSelectRow, then SerializeGridData.

When I click on the text besides the plus icon, the order of events is SerializeGridData then OnSelectRow then loadError.

When I click again on the text besides the plus icon, the order becomes OnSelectRow then SerializeGridData and the childs apear normaly and the parent remains there.

What can I do to get rid of this multi-behaviour?

Can a event like 'subGridRowExpanded' be added to the treeGrid or something similar?

We really need an example of autoloading tree nodes so PLEASE HELPCry

All the best,

Alex

07/03/2011
18:32
Avatar
TAlex
Member
Members
Forum Posts: 5
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

tony said:

Hello,

Will see what I can do.

Best Regards

Tony


Hello Tony,

I have the same request of a treegrid example with autoloading tree nodes.

I am trying to do something like this.

- First I load the adjacency grid with the data from an 'url' and 'postData' returned on 'serializeGridData' event.

- OnSelectRow i change with 'setGridParam' the 'url' and the 'postData' and then trigger("reloadGrid")

When I click on the row, the data from the new url overrides the data from the old url so the parent node disapeares.

The order of events is OnSelectRow, then SerializeGridData.

When I click on the text besides the plus icon, the order of events is SerializeGridData then OnSelectRow then loadError.

When I click again on the text besides the plus icon, the order becomes OnSelectRow then SerializeGridData and the childs apear normaly and the parent remains there.

What can I do to get rid of this multi-behaviour?

Can a event like 'subGridRowExpanded' be added to the treeGrid or something similar?

We really need an example of autoloading tree nodes so PLEASE HELPCry

All the best,

Alex

07/03/2011
18:32
Avatar
TAlex
Member
Members
Forum Posts: 5
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

sorry for the duble  post

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information