1

extjsのRowEditorグリッドで「checkboxgroup」のチェックされた値を取得しようとしています。これまでに行ったことは、RowEditorの列の1つに次のようなチェックボックスグループを作成したことです。

columns: [
{
             id: 'weekdays',
             header: 'Week Days',
             dataIndex: 'weekDays',
             width: 150,
             sortable: true,
             editor: {
                xtype: 'checkboxgroup',
                allowBlank: true,
                frame : true,
                vertical : true,
                columns: 2,
                items: [
                {boxLabel: 'Sunday', name: 'S', checked: true},
                {boxLabel: 'Monday', name: 'M', checked: true},
                {boxLabel: 'Tuesday', name: 'T', checked: true},
                {boxLabel: 'Wednesday', name: 'W', checked: true},
                {boxLabel: 'Thursday', name: 'T', checked: true},
                {boxLabel: 'Friday', name: 'F', checked: true},
                {boxLabel: 'Saturday', name: 'S', checked: true}
                ]
            }
        },{ ...........// rest other columns 

getValue()メソッドを使用して値を取得しようとしましたが、機能しませんでした。私は試した

 var schdeditor = new Ext.ux.grid.RowEditor({
        saveText: 'Update',
        listeners: {
        afteredit: function(object, changes, r, rowIndex) {
        // Do custom things
        var cm = object.grid.colModel, 
        fields = object.items.items;
        var weeks = fields[0].getValue();

これを実行すると、ブラウザがハングし、しばらくすると「スタックオーバーフローエラー」が発生します

4

0 に答える 0