how do I avoide check boxes for child nodes ?

I have treegrid, where the first column is a check box and second column is a tree. I need check box only for the main nodes in the tree. I don’t need it for child nodes. How do I do that ?



code I am using is given below. In this case I need check box only in the first row. I may have many parent nodes in the tree in real life.



code

-----









        

















    

















xml

-----







<?xml version="1.0" encoding="UTF-8"?>

PendingPre-FY



200809032600250FY



2009030200010FY 2008470030Last 30 Days100

You can set necessary type for the cells via xml:
mygrid.setColTypes(“ro,tree,er,er,er,er,er,er,er,er,er”);

xml
-----
<cell type=“ch”>Pending