此方式适用于在grid中绑定selModel : Ext.create('Ext.selection.CheckboxModel')
取消指定选中
// 参数为记录的索引
xxxGrid.getSelectionModel().deselect(0);
取消所有选中
xxxGrid.getSelectionModel().deselectAll();
API:
( records, [suppressEvent] )

Deselects a record instance by record instance or index.

Parameters

  • records : Ext.data.Model[]/Number

    An array of records or an index

  • suppressEvent : Boolean (optional)

    True to not fire a deselect event

    Defaults to: false

( [suppressEvent] )

Deselects all records in the view.

Parameters

  • suppressEvent : Boolean (optional)

    True to suppress any deselect events

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2021-06-21
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案