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

How to call a js function on add new update button in grid

1 Answer 365 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krunal
Top achievements
Rank 1
Krunal asked on 19 May 2014, 06:24 AM
Hi

When i click on Add new in kendo ui grid , i see there is update and cancel button in grid , now i want to don't call any method on that update button click, instead of that i want to call an js function,

how can i do this?

please advice ,

Regards,
vinit

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 20 May 2014, 01:39 PM
Hello Vinit,

This could be achieved by subscribing to the Grid's save event and once it is triggered - call the event's preventDefault method and execute the function you wish. Here is a small JSBin example showing how this could be done.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Krunal
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or