This is a migrated thread and some comments may be shown as answers.

Window MVVM modal bug

1 Answer 106 Views
Window
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 17 Jan 2015, 04:44 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Jan 2015, 03:33 PM
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!
Tags
Window
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or