How to implement a searchable TreeField?

392 Views Asked by At

I got how to implement a TreeField. But how to implement a searchable TreeField?

2

There are 2 best solutions below

0
On

I would say to implement something like List with checkbox along with search criteria

So you have vector of TreeField controls, each has some text value, on enter text you walk through all vector and on first equality focus a field.

0
On

Try simply to add a editField and a treefield and add a changeListener to the editField. When it changes (write a char) you repopulate the treefield... that is the easiest way. I assume you have the date where you populate the treefield previously, so now must to select only those who meets the criteria..