Binding click event on a button in footer template

2 posts, 0 answers
  1. Francis
    Francis avatar
    8 posts
    Member since:
    Oct 2012

    Posted 15 Aug Link to this post

    Hi,

    I'm currenty using MVVM across all my UI and it's working great but I have one small issue with a button inside a footer template which doesn't call the function inside my view model.

    I include in attachment an example showing my issue.

  2. Dimitar
    Admin
    Dimitar avatar
    171 posts

    Posted 17 Aug Link to this post

    Hello Francis,

    On the following Dojo example you can find a modified version of the provided example, where the click binding in the footer template of the DropDownList widget works correctly.

    To achieve the desired result, I have used the DropDownList's open event to bind the model to the footer template, which is outside of the binding container:
    onOpen: function(e) {
      var footer = $(e.sender.popup.element).find(".k-footer")
                 
      kendo.bind(footer, viewModel);
    }

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top