PDA

View Full Version : Tree panel with a search field



mcadirci
1 Sep 2010, 10:32 PM
Hello,

I have a tree panel and i would like to add a search field (just as the extjs api).

What is the best way to do this?

Sample codes or sites would be great.

Thanks.

--
Mehmet

Condor
1 Sep 2010, 11:12 PM
So you want the same as in the Ext JS API docs? Then why not look at the code for the API docs?

See ApiPanel.filterTree in ext/docs/resources/docs.js.

mcadirci
1 Sep 2010, 11:15 PM
Well,

That is a good question. I tried to add that code to mine but I can't figure that out why it is not working a simpler sample would be great.

I though there would be a parameter like:
...
collapsible: false,
rootVisible:false,
searchable:true,
...

Condor
1 Sep 2010, 11:39 PM
Have a closer look at how TreeFilter is created and used.

mcadirci
2 Sep 2010, 5:16 AM
Hello,

Thanks for your answer. TreeFilter works like magic. =)

--
Mehmet

mjhaston
6 Jun 2012, 7:09 AM
Have a closer look at how TreeFilter is created and used.

I can't figure it out! I'd love to see an example of how it's used, but I can't find any. I'm staring at a few ways of filtering trees, but my head is hurting. I think the examples I'm looking at are people's own functions and not using TreeFilter.