PDA

View Full Version : gird search result auto select and close if only new result item



zlevardy
21 Aug 2012, 9:32 AM
hi,

it would be great to somehow auto select a result item from my search result grid, if only item matching item has been found, and close popup result window once auto selected.
Trying to close window by this.close(); and got exception complaining about underlaying Store blocking this close.
Should the Store "detached" somehow from the grid, before closing result popup window?

thx,
Zol

scottmartin
22 Aug 2012, 11:27 AM
Do you mean something like the following:
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/live-search-grid.html

If this is not the case, can you provide a better description?

Scott.

zlevardy
23 Aug 2012, 10:58 AM
thanks. Finally I have sorted out ;) Solution: check result if only one item and do what I wanted, and simply does not show up selection window.