[VUE 2] Run function while user editing the cell
Hi, Like startCellEdit onFinishCellEdit, Is there are any events or functions which run when the user is editing the cell?. Thank you
Hi, Like startCellEdit onFinishCellEdit, Is there are any events or functions which run when the user is editing the cell?. Thank you
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/
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.
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
Okay, Thank you!