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
Auto expand on treegrid load
15/06/2009
02:53
Avatar
Marcel Karras
Member
Members
Forum Posts: 22
Member Since:
19/03/2009
sp_UserOfflineSmall Offline

Hello,

at the moment the only way to achieve an auto expanding on treegrid load is to do it by hand. The documentation states that it is planned to provide a method called "expandAll"/"collapseAll"... @Tony: can you tell me, if this will be implemented in releases in the nearby future?

17/06/2009
11:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Marcel,

collapseAll can be done easy, but I have dificulties on how to process with expandAll. The problem : When we use autolading nodes (load nodes with ajax) how we should process with this when we call expandAll? It is not a trivial task.

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.

17/06/2009
11:37
Avatar
Marcel Karras
Member
Members
Forum Posts: 22
Member Since:
19/03/2009
sp_UserOfflineSmall Offline

Hi Tony,

I'm using the adjacency model with automatic nodes loading (single ajax calls). You're right... it's not trivial due to the fact that a simple solution would cause an inacceptable amount of ajax calls. So the main target would be to circumvent this problem using one single call but getting all desired information.

A first approach could be to let the expandAll() method send all non-expanded node IDs (or sth. appropriate) via POST to the server which in turn will provide the data as a special crafted JSON array applied to every node ID. All further expandAll()/collapseAll() operations could be done on client-side as the data has to be loaded only once.

Dunno if this is consistent to the current jqgrid infrastructure. Smile

Greetings from Germany.

17/06/2009
12:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello again,

Thanks for the suggestion. I will consider this approach too, but this require to have another script to load data at once. Will think instead of this.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
41 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