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

Dialog - Change event function runtime

1 Answer 77 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 22 Mar 2018, 02:43 PM

Hello,

I have a use case where I want to change the event function (_dialogActionOK, _dialogInitOpen, _dialogOpen) called by the dialog window runtime.

$('#dialog').kendoDialog({
...
actions: [
    { text: 'Cancel'},
    { text: 'OK', primary: true, action: function(e) { _dialogActionOK(); } }
],
initOpen: function (e) { _dialogInitOpen(); },
open: function (e) { _dialogOpen(); }

 

What is the simplest way to change the functions called runtime?

$('#dialog').initOpen( function(e) { newMethod(); }) ?

Thanks for the help

1 Answer, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 23 Mar 2018, 04:39 PM
Please ignore my question. I've found a workaround which implies to use two kendoDialogs.
Tags
Dialog
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Share this question
or