Disable multi select?

后端 未结 6 1927
栀梦
栀梦 2021-01-18 08:27

Is there a way to disable multi select?

6条回答
  •  爱一瞬间的悲伤
    2021-01-18 08:55

    In don't know of any setting to disable it.

    handle the onSelectedRowsChanged event and do something like:

    var selectedRows = grid.getSelectedRows();
    if( selectedRows.length > 1 ) {
      grid.setSelectedRows( [ selectedRows[ selectedRows.length - 1 ] ] );
    }
    

提交回复
热议问题