Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Àlex Corretgé on May 28, 2008 08:01
open dhtmlx forum
Filtering dhtmlxTreeGrid only second level

I'm using filtering in dhtmlxTreeGrid and runs fine and wonderfuly :-)

But I have a requisition to filter only by the second level rows.

I use dhtmlxTreeGrid to get a sumarize row and her childs are the detail, and I need to view all sumarized rows and only the filtered childs.

Is it possible?

Is there any mark to indicate that a row must be visible anyway?

Thanks for all and congratulations for your product :-)
Answer posted by Support on May 29, 2008 05:13
Default functionality doesn't support such use-case, but it sounds as good addition to existing functionality.
Please try to use attached js file instead of original one, with it you will be able to use

mygrid.setFiltrationLevel(1,true)

the true as second parameter means, that while lower level items will be hidden, the row at level second level will be visible in any case.
Attachments (1)
Answer posted by Àlex Corretgé on May 29, 2008 07:05
Hi,

thanks for your answer and for the new method.

But I can't run it.

I put

mygrid.setFiltrationLevel(1,true);

after

mygrid.init();

and I view in the combo only the second level data, but when I select one, I view all datagrid.

Kind Regards
Answer posted by Support on May 30, 2008 01:51
It seems that I implemented slightly different approach.
Please check attached sample, is it works as expected?


Attachments (1)