PDA

View Full Version : Search and display a node by highlighting the node in the tree



raghavan0208
20 May 2013, 7:49 AM
Trying to search and display a node by highlighting the node in the tree. have tried to acheive it by using the "ScrollToView" function of the Ext.dom.element but nothing happened.Can anyone suggest a better solution for above described scenario.

slemmon
22 May 2013, 8:35 AM
You might look at the LiveSearchGrid (http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ux.LiveSearchGridPanel) class's source and it's example:
http://docs.sencha.com/extjs/4.2.0/extjs-build/examples/grid/live-search-grid.html

I suspect the class doesn't work with trees out of the box, though I've not tried it myself. If it doesn't you may be able to use pieces of the source to accomplish what you're wanting.