I'm trying to change the visibility of the buttons in the toolbar depending on the "edit status" of the grid. I can easily detect when the grid enters the edit mode by wiring appropriately the edit event of the grid, but how do I intercept when the grid leaves the edit mode?
3 Answers, 1 is accepted
0
Accepted
Alexander Valchev
Telerik team
answered on 28 Mar 2012, 01:47 PM
Hi Nicola,
I am afraid that currently there is no event dedicated to the exiting of edit mode.
You may try to use the save event that will rise before leaving the edit state, but note that this event will not trigger if the edited data was not changed.
Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Thanks Alexander, but am I correct in saying that the save event is not fired also when a new record is created? I already tried to wire it up without success.
Save event should fire every time the data in the edited cell is changed. If you are inserting a new record through the create button, the new row will be put automatically in edit mode, so the event should be triggered after filling in each of the field values. Please check the screen cast and the attached project and let me know if I missed something.
All the best,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!