Our blazing fast Grid component built with pure JavaScript


Post by Webethics »

Hi, Like startCellEdit onFinishCellEdit, Is there are any events or functions which run when the user is editing the cell?. Thank you


Post by alex.l »

Hi,

You can listen to change event of the field you used as editor.
https://bryntum.com/docs/grid/api/Core/widget/Combo#event-change

    columns : [
        { text : 'Name', field : 'name', flex : 1 },
        {
            text   : 'Birthplace',
            field  : 'city',
            width  : '8em',
            editor : { 
                type : 'dropdown', 
                items : DataGenerator.cities,
                listeners : {
                    change : 'up.onCityChange'
                }
            }
        },

https://bryntum.com/docs/grid/api/Grid/feature/CellEdit
https://www.bryntum.com/examples/grid/celledit/

All the best,
Alex


Post by Webethics »

Yes, I think it will only work for dropdown, but I need it for the input field. When the user is typing in the field at that I need to call the function.


Post by alex.l »

You can easily find events for any field you need to use as editor in docs https://bryntum.com/docs/grid/api/Core/widget/TextField#event-change

All the best,
Alex


Post by Webethics »

Okay, Thank you!


Post Reply