Page 1 of 1

[VUE 2] Run function while user editing the cell

Posted: Fri Jul 15, 2022 9:14 am
by Webethics

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


Re: [VUE 2] Run function while user editing the cell

Posted: Fri Jul 15, 2022 10:09 am
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/


Re: [VUE 2] Run function while user editing the cell

Posted: Fri Jul 15, 2022 10:26 am
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.


Re: [VUE 2] Run function while user editing the cell

Posted: Fri Jul 15, 2022 10:33 am
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


Re: [VUE 2] Run function while user editing the cell

Posted: Fri Jul 15, 2022 1:37 pm
by Webethics

Okay, Thank you!