【问题标题】:Extjs Grid - How to get record of first row but don't change selectionExtjs Grid - 如何获取第一行的记录但不更改选择
【发布时间】:2013-07-01 06:47:48
【问题描述】:

我想获取第一行的值记录,但不更改选择。我试试

alert(grid.store.first().get('name'));

但不工作。我该怎么做谢谢。我使用 extjs 4.1.1

【问题讨论】:

    标签: extjs grid extjs4.1


    【解决方案1】:
    grid.store.getAt(0).data.name
    

    这里的名称是列,即你需要数据的列的数据索引。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多