Hi,
I have a TreeGrid with the filter enabled.
When the user enters filter criteria, and my datasource returns the results, is there a way to open the matching folders automatically?
(Usually they are searching for a child record, so it will save them an extra click).
Thanks,
Mike
You can set an isOpenProperty via TreeGrid.dataProperties. Nodes that come back with isOpenProperty set to true will be open - just be sure all such nodes are delivered along with their children, or there will be an extra network turnaround.
My datasource just returns data from the table, not any SmartClient component data. Would I set isOpen in the Transform Response?
Won’t that cause the folders to be open in all cases? I was hoping to trap only for the cases when a filter is applied.
Please try the docs, then let us know if you have questions.