Dialog - Change event function runtime

2 posts, 0 answers
  1. Simon
    Simon avatar
    2 posts
    Member since:
    Feb 2018

    Posted 22 Mar Link to this post

    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

  2. Simon
    Simon avatar
    2 posts
    Member since:
    Feb 2018

    Posted 23 Mar Link to this post

    Please ignore my question. I've found a workaround which implies to use two kendoDialogs.
Back to Top