PDA

View Full Version : Filtered leaf nodes need to selected and visible in current view



ImSatan
10 Jun 2010, 4:00 AM
hello everyone,

I am trying to implement filter on a tree. The filter implements in such way that if the user enters text(regular expression included) and sends for search, the original tree structure is maintained but the leaf nodes matching the search criteria gets selected, and also corresponding parent nodes gets expanded.

Hence all the filtered leaf nodes will be in selected state and will be only visible in tree view, while rest of the tree structure remains unchanged.

Any comments/suggestions will be highly appreciated.

thanks

Animal
10 Jun 2010, 4:07 AM
Selected? TreeFilter doesn't select.

TreeFilter just hides a node if it the test.

ImSatan
10 Jun 2010, 11:10 AM
Thanks Animal for the quick response.
I wanted a filter such that it keeps the tree structure as it is but selects the leaf node which matches the pattern(search text).
This implemetation will excuse the user from selecting each filtered node manually, he can simply do further processing( drag-n-drop in my case) directly without he having to select each nodes after search.