Filter Grid using treegrid

Hi Team,



I want to add filtering based on treenodes.I am using dhtmlxGrid and dhtmlxTree.When user clicks on tree node then appropriate filtering should be done on grid.Can u please help?



-Agile



You can attach necessary code to the tree as

tree.attachEvent(“onClick”,function(id){
grid.filterBy(0,tree.getItemText(id)); //or any other rules here
return true;
});