简体   繁体   English

Ext JS:如何在具有多个列值的网格中查找记录

[英]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. 我有一个ExtJS网格,每个页面上有15个项目。 Individual items can be searched using Ext.getCmp('id').store.data.items[0]; 可以使用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 我是ExtJS的新蜜蜂View ScreenShot 1 View屏幕截图2

I guess you are loking for Ext.data.Store find() and findBy() methods. 我猜您正在寻找Ext.data.Store find()findBy()方法。

This fiddle illustrate how you can use it. 这个小提琴说明了如何使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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