Window MVVM modal bug

2 posts, 0 answers
  1. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 17 Jan 2015 Link to this post

    When modal window is initialize with MVVM, the modal overview is not hidden if window visible is set to false.
  2. Dimo
    Dimo avatar
    8472 posts

    Posted 19 Jan 2015 Link to this post

    Hi Matjaz,

    The visible binding cannot work properly with the Window widget, because it represents simple hiding and showing of a single DOM element - the Window wrapper. As a result, any required accompanying scripts are not executed and the Window even doesn't "know" that is hidden.

    You need to implement a custom MVVM binding, which uses the viewModel's refresh event, checks the isVisible value and opens/closes the Window via its API methods.

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