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

Popup Editor Update/Cancel button

1 Answer 555 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 04 Jun 2015, 05:12 PM

Hi All,

 

1. Is there a way to remove the "Update/Cancel" button and replace them with a html template?  

I tried the following and the buttons are still showing up

   editable: {        

        mode: "popup",        

        template: $("#myTemplate").html(),        

        update: false,        

        destroy: false

},

2. Is there a way to override the Update event of the popup button?

TIA

 

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 08 Jun 2015, 02:29 PM

Hello Steve,

The update and destroy properties of the editable configuration is not related to showing/hiding the Update and Cancel buttons in the popup template. 

A possible solution would be in the edit event to hide the buttons. Since MVVM is used in the bind the fields in the template to the data items the update button is calling the sync method of the data source. The cancel button will call cancelChanges method in order to revert any changes made to the data source. 

Regards,
Boyan Dimitrov
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
Steve
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or