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
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.
dhtmlxtreegrid_filter.zip (2.15 KB)
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
It seems that I implemented slightly different approach.
Please check attached sample, is it works as expected?
1212080399.zip (12.4 KB)