简体   繁体   中英

Ext JS : How to find a record in a Grid with multiple column values

I have an ExtJS grid which has 15 items on each page. Individual items can be searched using Ext.getCmp('id').store.data.items[0];

But I want a generic functions which can search for a particular record on any page based on number of columns value which I supply.

Also when it has found the record I need to click on the checkbox(in the first column) of the corresponding row

I am new bee to ExtJS View ScreenShot 1 View Screenshot 2

I guess you are loking for Ext.data.Store find() and findBy() methods.

This fiddle illustrate how you can use it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM