This is a migrated thread and some comments may be shown as answers.

How to know when the grid leaves the edit mode.

3 Answers 344 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicola
Top achievements
Rank 1
Nicola asked on 27 Mar 2012, 10:50 PM
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

Sort by
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!
0
Nicola
Top achievements
Rank 1
answered on 28 Mar 2012, 02:10 PM
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.
0
Alexander Valchev
Telerik team
answered on 29 Mar 2012, 11:01 AM
Hello Nicola,

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!
Tags
Grid
Asked by
Nicola
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Nicola
Top achievements
Rank 1
Share this question
or