Forum
20:14
10/08/2009
I had close problem. To solve it I have to set loaded:true property for all nodes having expanded:true.
Look at the demo.
Best regards
Oleg
12:27
10/08/2009
Hi!
I personally prefer to use JSON instead of XML if it is possible, but you can do the same also with XML data. Look at the answer on the stackoverflow.com which I recently wrote. Probably it explain the problems which you has.
Best regards
Oleg
20:10
10/08/2009
Because of the line 67 of the file grid.treegrid.js:
if(ldat[expanded] === true) {
twrap += $t.p.treeIcons.minus+" tree-minus treeclick'";
} else {
twrap += $t.p.treeIcons.plus+" tree-plus treeclick'";
}
If the row of data (ldat) not contain the loaded property, the construct ldat[loaded] will be equal to undefined. The expression true && undefined is equal to undefined. On the other side false && undefined is equal to false. So strange is JavaScript!
Thus in case of undefined loaded prioperty the value of ldat[expanded] will be set either to undefined or to false and never to true. So the node will not expanded in case of undefined loaded prioperty.
The code fragent which I described above is new in tree grid 4.0. So same code which run under jqGrid 3.8.2 and expanded some nodes could not expand the same node in jqGrid 4.0.
If one would change the code of jqGrid so that one would test
twrap += $t.p.treeIcons.plus+" tree-plus treeclick'";
} else {
twrap += $t.p.treeIcons.minus+" tree-minus treeclick'";
}
instead of
...
the problem will also fixed.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
55 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