Forum
11:20
02/09/2010
First of all, kudos to jqgrid! Great work, very usefull tool...
Ok, unto the problem I have.
I have a treegrid using adjacency model.
I got everything working, except that, when you click a parent to expand, the data gets inserted below the row next to the parent. I hope I said the right. Let me give a quick sample, say I have
1
2
3
4
5
as top level nodes. When a I click "2", the data/children gets inserted below "3", not between "2" and "3". See below
1
2
3
2a
2b
2c
4
5
The leveling is also correct. Same thing happens to the childrens chidlren. They get inserted 1 row below where it should be. I checked the data being sent back and it thus have a correct parent id. Here is another interesting thing happening. When I click the table headers, it sorts as expected and yeah, everything falls in the right place. The children of "2" gets properly placed beneth it after sorting.
Anyone else experince this? How to fix?
20:59
10/09/2010
Yes, I have the same problem. After changing the function 'addJSONData' in grid.base.js, this issue will be gone. The following is what I've modified. Hope it can help you.
original code:
$(ts.rows[i+fpos+rcnt]).after(row);
changed to:
if (ts.p.treeANode == -1)
$(ts.rows[i+fpos+rcnt]).after(row);
else
$(ts.rows[i + fpos + rcnt]).before(row);
13:39
30/09/2010
donnazhen said:
Yes, I have the same problem. After changing the function 'addJSONData' in grid.base.js, this issue will be gone. The following is what I've modified. Hope it can help you.
original code:
$(ts.rows[i+fpos+rcnt]).after(row);
changed to:
if (ts.p.treeANode == -1)
$(ts.rows[i+fpos+rcnt]).after(row);
else
$(ts.rows[i + fpos + rcnt]).before(row);
If you dont want problem with expanding last node, then this code is better:
if (ts.p.treeANode == -1)
$(ts.rows[i+fpos+rcnt]).after(row);
else
$(ts.rows[i + fpos + rcnt-1]).after(row);
Is it normal that we have to hack component to work with it?
Is this a problem only for adjacency model?
11:01
05/10/2010
It is named Christian Louboutin for the reason that man who create Christian Louboutin shoes. At the same time, it's helpful to reduce the risk of injury for the player. If you think your feet should be protected well during the strenuous exercise, the Christian Louboutin Pumps are the right choice for you.
There are many Cheap Christian Louboutin Heels from our shop. If you want to learn more informations of those Christian Louboutin Boots, please visite our website http://www.louboutinshopsale.com/. Are you looking for a comfortable shoes? We are ready for you to give you great discount Christian Louboutin Sandals and best service.
Most Users Ever Online: 715
Currently Online:
38 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