Hi Ugur,
We can able to achieve your requirement by using “selectRows” public method and “create” client side event.
Create – Event which is triggered when TreeGrid is rendered completely
Please refer the code snippet below.
| [HTML] $(function () { $("#TreeGridContainer").ejTreeGrid({ dataSource: sampleData, //.. create: "create", }); }); function create(args) { var obj = $('#TreeGridContainer').data("ejTreeGrid"), rowindex = [2,4,6]; // row index for(var x = 0; x < rowindex.length; x++){ obj.selectRows(rowindex[x],null,true); //(rowIndex, toIndex, isCheckbox) } } |
Please find the sample link below.
Please let us know if you need any other assistance on this.
Thanks,
Suriyaprasanth R.