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.
    http://dojo.telerik.com/@Makla/IcIya/2
  2. Dimo
    Admin
    Dimo avatar
    8333 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.

    http://docs.telerik.com/kendo-ui/framework/mvvm/bindings/custom

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top