#text_filter and expandAll() method

Hi guys,

I want to know, if it’s possible to use any method (like expandAll()) when ure using the text filter box in the header (#text_filter). Im using ur treegrid, and i need a full tree (full expand) when user is searching with the filter box.

Thanks for your help !

You may try to use the onFilterStart event:
docs.dhtmlx.com/doku.php?id=dhtm … ilterstart

thank you works with both event onFilterStart and onFilterEnd !

Another Question :

Im trying to set the filter element with param from the url like that :

helptgrid.getFilterElement(3).value = VarURL;

Its ok, the value of VarUrl can be view in the text_filter box, but nothing happen on my tree. The filter works with manual input, but not in this case.

There is an event or something which can refresh the grid (and only the grid, not the header) and show the resultats of the .getFilterElement.value ?

Thank you for your help !

Please, try to use:

helptgrid.getFilterElement(3).value = VarURL; helptgrid.filterByAll();