开发者

to fetch a particular record

m writing the front end of my application using EXTJS.I have a grid say grid 1, and another grid say grid 2.i select a particular row from grid 1 and the items related to the selected row appear in my grid 2. if a user changes any item in grid 2 both the grids have to be refreshed.after reloading them i am not able to r开发者_如何学Goetain the selected row of grid 1. but i have a variable which stores a particular column value of the selected row. is there any way i can get my complete record on the basis of this column value.


Assuming you know the field name in the record and that the value is unique for that field in the store.

var store = grid1.getStore();
var record = store.getAt(store.findExact(fieldName, columnValue));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜