PDA

View Full Version : search/Filter in Tree Grid



atchuta
8 Mar 2012, 10:38 AM
Hi,

I am very new to Ext Js 4, I have to implement the search/ filter in tree grid, please help me , if any body implemented and give me suggestions.

Thanks,
atchuta

mitchellsimoens
8 Mar 2012, 2:11 PM
Moved to Ext JS 4 Q&A forum

vietits
8 Mar 2012, 3:34 PM
There are some examples that are included in the Ext SDK package that you can refer to:

http://docs.sencha.com/ext-js/4-0/#!/example/grid/live-search-grid.html
http://docs.sencha.com/ext-js/4-0/#!/example/grid-filtering/grid-filter-local.html

incutonez
8 Mar 2012, 3:55 PM
I recently went through the pain of filtering a TreeStore, so I'd suggest looking over my thread (http://www.sencha.com/forum/showthread.php?184010-TreeStore-filtering.) to see if it helps you at all. The main problem is that a TreeStore inherits an AbstractStore, which doesn't come with a filtering function, so you have to implement one on your own.

Along the way, I ran across the copy function bug, so make sure you check out this thread (http://www.sencha.com/forum/showthread.php?134844-tree-node-copy(deep)-not-working-(4.0.1) as well.