Forum


11:01

Moderators
30/10/2007

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.
11:37

19/03/2009

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.
Greetings from Germany.
12:24

Moderators
30/10/2007

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66