Forum
15:37
26/08/2010
Within jqGrid 3.7.2 using JSON retrieved data, I have it load the parent objects initially and then it loads the children as the parents are expanded. This works properly. Upon trying to collapse the recently expanded parent the icon changes to the left of it, but the "child" data does not hide or disappear properly. When re-expanding the parent node it loads the data a second time thus repeating the children that already exist. Code I am using for this:
jQuery('#assto_browser').jqGrid({
width:500,
height: 125,
rowNum: 30,
rowList: [30,50,100],
colNames:['ID','Group Name','Sequence', 'Login ID'],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true},
{name:'name',index:'name'},
{name:'sequence',index:'sequence', sorttype:'int'},
{name:'staffname',index:'staffname', align:'center'}
],
ondblClickRow: function(rowid,iRow,iCol,e) {
OpenGridURL($('#list47').getCell(rowid,0));
},
treedatatype: "json",
datatype: "json",
mtype:"GET",
url:'http://localhost:2810/GetGroupsAndStaffList.aspx',
jsonReader : {
root: "rows",
page: "page",
total: "total",
records: "records",
repeatitems: false,
cell: "cell",
id: "id",
userdata: "userdata",
subgrid: {root:"rows", repeatitems: true, cell:"cell"}
},
viewrecords:true,
treeGridModel: 'adjacency',
treeGrid: true,
ExpandColumn : 'name',
pager: '#assto_pager'
});
I am working on a time sensitive project, any immediate help would be appreciated.
Thank You,
Chris
19:22
Moderators
30/10/2007
Hello,
We have made some fixes for greeGrid using adjacency model in 3.8 Beta
http://github.com/tonytomov/jq.....268efd0eb9
Could you please try it and let me know if the problem persist.
Kind 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.
21:34
26/08/2010
tony said:
Hello,
We have made some fixes for greeGrid using adjacency model in 3.8 Beta
http://github.com/tonytomov/jq.....268efd0eb9
Could you please try it and let me know if the problem persist.
Kind Regards
Tony
Tony, I originally tried 3.8 beta because I thought I would like grouping to be used, but unfortunately with grouping you cannot select the "group" node which is what I need. In 3.8 the problem appeared to be worse, when expanded it would start showing the children one node below.. for example:
Expanded-Parent1
Collapsed-Parent2
Child of parent1-1
Child of Parent1-2
When you tried to collapse it, it wouldnt even change icons, it would instead just single click the row and turn it yellow.
Any help would be appreciated
Thank you,
Chris
12:25
23/02/2010
I ran into the same issue using treeGrid with remote json and using beta 3.8 of the grid.
I did a little workaround in the expandNode method where I changed:
into
I know it isn't the right way to fix it, but it works for me as I only use json at the moment.
10:40
25/01/2012
Just for the record,
I had the same problem and it turned out to be something related to javascript.
in the jquery treegrid adjacency example the xml sends "![CDATA[value]]" as id. It turned out that jqGrid could not find this id as matching the id to be collapsed.
Just changing it to "value" instead of "![CDATA[value]]" solved the issue for me.
Most Users Ever Online: 715
Currently Online:
33 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