XPath for treeGrid

Can any body help me with a sample code where in Xpath used for treeGrid, its very urgent

I appriciate your Help.

XPath for treeGrid

Hi Prasad,
This is an example of iterating through treeGrid's row or column with XPath. You could try to iterate through the list grid viewNode,get the row that is not hidden and get the value or anything else defined in its viewNode such as change color even add some event handler on it. For example getting all record value from column 1 in treeGrid:

      var oTree = bb.document.getElementById('myTreeId');    // get tree grid by id
      alert(oTree.selectNodes("view()/div[3]/table/tbody/tr[property::clientWidth gt 0]/td[1]/div/property::innerHTML");  // this going to iterate through all row  that is not hidden in column 1 (if you want column 2 then change td[2],etc ) and get the content. This return as an array.

If this is still not clear , please read more post in :
http://bdn.backbase.com/node/4950
http://bdn.backbase.com/node/4770
~Yudi