Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Not able to access treeGrid records

    I have created a TreeGrid control and I have populated some data inside it. I have a requirement that I need to check the records in the TreeGrid after some time interval. hence, I implemented a Timer class.

    But the problem I am facing is that I am not able to access the TreeGrid records.

    I tried the following code :
    Code:
    treeGrid.getRecords().length
    This piece of code always returns zero inspite of the fact that I have 12 records grouped under 2 root nodes. Each node has 6 children.

    Any suggestion about how to access the records in the TreeGrid ?

    #2
    Did you try getTree() and the many APIs on Tree?

    Comment


      #3
      not able to access treegrid records

      Yes. I tried this :

      Code:
      Tree tree = taskTreeGrid.getTree();
      ListGridRecord[] listGridRecord = tree.getData();
      MessageBox.alert(listGridRecord.length + "");
      Still I get the record count in the Tree as zero.

      Comment


        #4
        I'm having exactly the same problem here.

        Did you find a solution for it ?
        Last edited by juan.medin; 29 Apr 2009, 20:54.

        Comment


          #5
          I am sorry to say that I have not.

          I am using :
          listGridRecord = taskTreeGrid.getRecord(int rowNum);

          to fetch individual records.

          Comment

          Working...
          X