GWT CellTable selection and single click on CheckBoxCell

前端 未结 1 887
抹茶落季
抹茶落季 2021-02-09 23:45

I\'ve got a CellTable wich work with SingleSelectionModel to make single selection and show some information into details panel. Also I\'ve got CheckBoxCell column into this Cel

相关标签:
1条回答
  • 2021-02-10 00:26

    Try to switch your selection models: use the MultiSelectionModel as the CellTable's selection model, so that the checkboxes work as expected (with both dependsOnSelection and handlesSelection set to true), and for the master-detail feature, use a CellPreviewEvent.Handler (or DefaultSelectionEventManager#createCustomManager), and RowStyles and getRowElement+addStyleName/removeStyleName for rendering (RowStyles when the CellTable renders the rows, then getRowElement to dynamically update styling).

    0 讨论(0)
提交回复
热议问题