Our blazing fast Grid component built with pure JavaScript


Post by m4qo5 »

I want to get cellEdit working on one click, could i listen to
cellclick
and inside it call parent's
beforecelleditstart
and
startcelledit
events? I try to create a workaround, but it doesn't work that way. Thank you
Last edited by m4qo5 on Wed Apr 01, 2020 10:16 am, edited 1 time in total.

Post by saki »

We have a feature request to make the triggerEvent configurable https://github.com/bryntum/support/issues/496

You can use the following code as a workaround (tested in basic grid example):

const onCellClick = ({ grid, record, column }) => {
    grid.startEditing({ record, column });
};

new Grid({

    listeners : {
        cellclick : onCellClick
    },
    // ...
});

Post Reply