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_Related Related Topics sp_TopicIcon
bugs from 3.6 to 3.7 in treegrid
03/08/2010
14:35
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

Hi, I just do an update from jgrid 3.6 to current 3.7, and found the treegrid could not work.

when I expand and read data from server , everything is OK, but when I click the node again(try to collapse it), the image icon showed the collapsed icon, but the data row is still there, and when I click the node again, it load the repeated record out again.

This is my code:

var dt = new Date();

jQuery("#list1″).jqGrid({
    treeGrid: true,
 treeGridModel : 'adjacency',
 ExpandColumn : 'MainDemoName',
 ExpandColClick : true,
    url: "/KPIGetData/DimData.aspx?SearchInput=dimtrucfortreegrid&DimName=ProductProcess" +  "&rand="+ dt   ,
 datatype: "xml",
 mtype: "GET",
    colNames:["OLAPKey","MainDemoName","Script"],
    colModel:[
     {name:'OLAPKey',index:'OLAPKey', width:1,hidden:true,key:true},
     {name:'MainDemoName',index:'MainDemoName', width:280},
     {name:'Script',index:'Script', width:1,hidden:true}
    ],
 height:'auto',
 pager : "#pager1″
 
});

The XML data return from server is:

<?xml version="1.0″ encoding="utf-8″ ?>

- <rows>
  <page>1</page>
  <total>1</total>
  <records>1</records>
- <row>
  <cell>5</cell>
  <cell>tesstname1</cell>
  <cell />
  <cell>2</cell>
  <cell>2</cell>
  <cell>false</cell>
  <cell>false</cell>
  </row>
- <row>
  <cell>6</cell>
  <cell>tesstname2</cell>
  <cell />
  <cell>2</cell>
  <cell>2</cell>
  <cell>false</cell>
  <cell>false</cell>
  </row>
- <row>
  <cell>7</cell>
  <cell>tesstname3</cell>
  <cell />
  <cell>2</cell>
  <cell>2</cell>
  <cell>false</cell>
  <cell>false</cell>
  </row>
  </rows>
Please help,  the code above work well in jqgrid 3.6
yours,
Ivan

And another problem:

 var grid = jQuery("#list1″);
 var olapkey = grid.getGridParam("selrow");

 var record =grid.getRowData(olapkey);
         

alert(olapkey);                                                        
 alert(grid.getNodeDepth(record));

in the above code, list1 is the same grid in my post above, olapkey could show correctly, point to the current selected row. But the grid.getNodeDepth(record) always return 0.

 Above code work well with jqgrid 3.6, but has problem in jqgrid 3.7

11/08/2010
11:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Will check it.

Also there was a little bug, could you please use the latest version from GitHub.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 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