Turn off a widget

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    58 posts
    Member since:
    Jun 2012

    Posted 25 Apr 2012 Link to this post

    Is there a way to turn off a widget once it has been applied?

    So if I have a case like: 


    I need to turn it off for a certain case. Is that possible?

  2. Dimo
    Dimo avatar
    8482 posts

    Posted 27 Apr 2012 Link to this post

    Hi Jonathan,

    If I understand you correctly you are talking about a dispose mechanism, which will remove the widget from the page. Currently it is not available out-of-the-box, we may include it in the future.

    What you can do now is unbind all existing event handlers from all elements of a widget and then remove it from the DOM. In some causes you may want to unwrap a widget element from its additionally added parents, e.g. as is the case with ComboBoxes and DatePickers.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top