javascript 从 ExtJS 网格面板获取所有行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6229609/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 19:59:57  来源:igfitidea点击:

Get All Rows from an ExtJS Grid Panel

javascriptextjsgridpanel

提问by Atul Dravid

I am updating a grid panel with rows dragged from another grid with has data coming from the database. Now I want to check the grid in which I am dropping items for avoiding duplicates. For this I want to get all the rows currently there in that grid and I searched everywhere but couldn't find the way to do this. Please help!

我正在更新一个网格面板,其中的行从另一个网格中拖出,其中包含来自数据库的数据。现在我想检查放置项目的网格以避免重复。为此,我想获取该网格中当前存在的所有行,并且到处搜索,但找不到执行此操作的方法。请帮忙!

采纳答案by Amol Katdare

yourGrid.getStore().getRange()