views:

109

answers:

0

I'm using jqGrid 3.7.2 and I'm rendering a treegrid. The grid renders just fine however I have 2 major issues.

  1. loadonce=true doesn't seem to be working. When I expand a node, it tries to load the data from the server even though I've already supplied all the data to the grid. And that leads to my second issues...

  2. I can't collapse nodes. The icon changes as if it is collapsed but I can see all it's children. I've tried very simplistic data samples and can't get anything to work right. Here is how I have my grid configured....

(SO won't post JavaScript code for some reason) http://gist.github.com/522085

Generally, I'm returning JSON but I've also tried the same data sample using XML and get the same results. Rendered tree but won't allow me to collapse nodes.

 <rows>
    <page>1</page>
    <total>1</total>
    <records>1</records>
    <row>
      <cell>1</cell>
      <cell>Gregg</cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell>0</cell>
      <cell>1</cell>
      <cell>2</cell>
      <cell>false</cell>
      <cell>true</cell>
  </row>
  <row>
      <cell>2</cell>
      <cell>Bolinger</cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell></cell>
      <cell>1</cell>
      <cell>1</cell>
      <cell></cell>
      <cell>true</cell>
      <cell>false</cell>
  </row>
</rows>

Any help would be much appreciated.