Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jqGrid 3.7.2 TreeGrid not collapsing properly
26/08/2010
15:37
Avatar
phreakshow
New Member
Members
Forum Posts: 2
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

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

27/08/2010
19:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

27/08/2010
21:34
Avatar
phreakshow
New Member
Members
Forum Posts: 2
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

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

13/09/2010
12:25
Avatar
jhermsen
Member
Members
Forum Posts: 7
Member Since:
23/02/2010
sp_UserOfflineSmall Offline

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:

this.p.treeANode = rc1.rowIndex;

 into

this.p.treeANode = rc1.rowIndex -1;

I know it isn't the right way to fix it, but it works for me as I only use json at the moment.

25/01/2012
10:40
Avatar
Ricard
New Member
Members
Forum Posts: 1
Member Since:
25/01/2012
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information