【问题标题】:Combobox with checklist and having Select all options in Ext Js 4.2带有清单并在 Ext Js 4.2 中选择所有选项的组合框
【发布时间】:2016-09-14 12:34:32
【问题描述】:

我需要创建一个带有清单的组合框。我能够做到。 我还想要一个全选选项,以便我可以选择所有我不能做的值。请帮助我完成这项工作。

【问题讨论】:

    标签: extjs4.2


    【解决方案1】:
        selModel: {
                        selType: 'checkboxmodel',
                        //mode: 'SINGLE',
                        headerWidth: 62,
                        //checkOnly: false,
                        checkOnly: true,//this will check only when you click on checkbox
                        allowDeselect: false,
                        ignoreRightMouseSelection: true,
    listeners: {
                        'selectionchange': Ext.bind(function (view, records) {
    
                        },this)
                    }
                    },
    

    文档:http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.panel.Table-cfg-selModel

    当你使用它时,你会在标题中看到一个复选框,我们可以在那里选择和取消选择表单

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-19
      • 2013-06-12
      • 1970-01-01
      • 1970-01-01
      • 2016-08-16
      • 1970-01-01
      • 2011-01-21
      • 2013-09-30
      相关资源
      最近更新 更多