Our blazing fast Grid component built with pure JavaScript


Post by jhughesoneplan »

I am using the Bryntum grid and when using an editor of type combo with multiSelect set to true it doesn't seem to be triggering a data update. The cell doesn't refresh and the sync in the crudmanager doesn't get called. If I don't do a multi-select it appears to be working fine.


Post by mats »

Can you please provide a test case? Works fine for me:

// Extend Column to create your own custom column class
class ColorColumn extends Column {
    // Define the type for this column, used in your columns config to add this column
    static get type() {
        return 'color';
    }

// Override default values
static get defaults() {
    return {
        field  : 'carColor',
        align  : 'center',
        editor : {
            type        : 'combo',
            multiSelect : true,
            items       : [
                'Black',
                'Blue',
                'Green',
                'Orange',
                'Pink',
                'Purple',
                'Red',
                'Teal',
                'Yellow'
            ]
        }
    };
}

}

// Register with ColumnStore to make the column available to the grid
ColumnStore.registerColumnType(ColorColumn);

//endregion

new Grid({

appendTo : 'container',

store : {
    fields : ['carColor']
},

selectionMode : {
    row          : true,
    checkbox     : true,
    showCheckAll : true
},

columns : [
    {
        text : 'Custom',
        flex : 1,
        type : 'color'
    }
],

data : [
    { name : 'foo', carColor : ['Black', 'Blue'] }
]
});

Post Reply