Hello guys,
First of all I would like to apologize - as a matter of fact, my previous reply was intended for another ticket which I was working on at the same time. I sincerely apologize for the confusion and the caused inconvenience.
Regarding the documentation issues, I (and the whole Kendo UI team) agree that there is much to be improved there and we are working on it. I hope that you will like the improvements that we are going to introduce in the next several months.
As for the original question, (the multiple window widgets that you have on the page) Leszek, you can
configure them to be loaded with Ajax (demo here). In such case you will have to use the refresh event to wait until the request has completed and then call the kendo.bind method to bind the content of the window to the corresponding ViewModel.
Another approach would be to use the TabStrip widget instead (again loading its tab contents with Ajax) and bind to the ViewModels when the contentLoad event is triggered (it is similar to the refresh event of the window).
Regarding the JavaScript required to declare the ViewModels themselves you can use separate JavaScript files loaded to the page before invoking the kendo.bind method. Or you can put them into script tags inside the partial views – the JavaScript will be executed when the content is appended to the DOM. I tried on my side and any script tags inside the partial views will be executed before the refresh/contentLoad event is triggered.
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!