extjs 中GridPanel常用处理:

当GridPanel的Store加载数据之后,设置默认选中第一行。一般处理方式在Store的Listeners里面处理 Load  函数。

<Listeners>

<Load Handler="Loaded()" />
</Listeners>

function Loaded() {
var sm = GridPanel.getSelectionModel();
sm.selectFirstRow();
}

一般来说GridPanel要设置

<SelectionModel>
<ext:RowSelectionModel >
<Listeners>
<RowSelect  />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>

Selected(record)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案