Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Oct 31, 2008 00:12
open dhtmlx forum
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

Answer posted by Support on Oct 31, 2008 03:45
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;
});