Search code examples
kendo-uikendo-gridkendo-asp.net-mvc

Add change event to all cells in specified column of Kendo Grid


I want to add a change event to all cells in a specified column using Kendo UI. Something like:

 this.myGridVariable.table.on("change", "--InsertMyColumnNameHere--", (e) => { this.doStuff(e) });

I thought this worked:

 this.myGridVariable.table.on("change", "[name=ColumnName]", (e) => { this.doStuff(e) });

but it doesn't, at least not with the latest update.


Solution

  • You need to specify what change event you mean:

    I believe you'll want the second one. You can't bind it to a single field, but it has e.field and you can execute code depending on its value.