【问题标题】:On clicking the row of a grid, checkboxes of other rows getting unchecked using checkboxselectionmodel in GWT单击网格的行时,使用 GWT 中的 checkboxselectionmodel 取消选中其他行的复选框
【发布时间】:2014-07-03 05:30:27
【问题描述】:

我有一个使用带有 checkboxselectionModel 的网格的 multiSelectCombobox。我希望在单击复选框时选中复选框,但是这里发生的情况是,当我单击未选中复选框的行时,该复选框被选中,而之前选中的所有其他复选框都自动取消选中。

我在 Sencha 上看到过很多帖子,但似乎没有任何帮助。

 grid=new Grid(skillsetStore, new ColumnModel(columnConfigs));
        cm.setSelectionMode(SelectionMode.MULTI);
        grid.setStyleAttribute("borderTop", "none");
        grid.setBorders(true);
        grid.setStripeRows(true);
        grid.setWidth(300);
        grid.getView().setForceFit(true);
        grid.getView().setAutoFill(true);
        grid.setSelectionModel(cm);
        grid.addPlugin(cm);
        grid.setHideHeaders(true);

这是我正在使用的网格...

非常感谢您对此问题的任何帮助。

【问题讨论】:

    标签: checkbox grid gxt


    【解决方案1】:

    我遇到了类似的问题。我在数据绑定完成事件中将复选框值设置为 false。一旦我删除它,它就可以正常工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-05
      • 2013-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多