Forum
04:10
22/09/2008
Hello,
I'm using TreeGrid 3.4.4, adjacency model, json datatype.
In some cases I have my records doubled after reloadGrid fired. When I look in FireBug - all seems good, it seems that it happens on client side.
I'll try to explain: for exampe, I have only 1 node record in my database. When I just create grid - all looks good, one record appears. Then I click on this record, icon changed to "expanded" and then I do reloadGrid (using pager button or my own button - no matter). After reloadGrid fires - I have already 2 record (1 real and 1 fake). If I do reloadGrid second time - after reloading I have only one record, as needed. But if I click on records (expand or expand and collapse) and then do reloadGrid again - I will have already 3 records (1 real and 2 fakes)!
In FireBug a see only one records receiving from server. Last 4 fields of this record are 0,"NULL","false","false".
To bypass this situation I tried to do clearGridData() before reloadGrid but got javascript error "this.parentNode is null".
What am I doing wrong? Any ideas?
Thanks.
23:00
11/09/2009
I saw this behavior while learning to use treeGrid (3 days ago). It was before I flushed out the server side code. Now that the server side query is set to only return children of the selected node, all is working like normal.
Would you mind sharing the server side query when searching for children?
-Ken
Most Users Ever Online: 715
Currently Online:
39 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