I'm trying to create an application which has two windows. I am using the MVVM framework, so I'm trying to create my windows declaratively using the data-role="window" syntax. I'm not sure if I'm doing something wrong, but I am running into two issues:
- Windows appear to ignore the data-visible="false" attribute
- Windows declared after the first window fail to be initialized correctly - eg: Only one of my windows is created correctly.
I created a jsfiddle to demonstrate:
http://jsfiddle.net/rKeR5/
Also:
I should probably point out that I also tried working around this by manually creating the windows using the .kendoWindow() method, but it seems like this breaks the MVVM bindings to fields I have bound inside of the window (to my view model.)
Update:
It seems that the problem only exists if the windows are declared as siblings in the DOM.
http://jsfiddle.net/rKeR5/
Also:
I should probably point out that I also tried working around this by manually creating the windows using the .kendoWindow() method, but it seems like this breaks the MVVM bindings to fields I have bound inside of the window (to my view model.)
Update:
It seems that the problem only exists if the windows are declared as siblings in the DOM.