Hi,
I have a problem with the Window widget: The widget creates a <div> and moves content of the specified element that I want to appear inside the window. Finally it all gets appended just before the closing tag of <body>.
This makes it difficult to work with e.g. KnockoutJS if a scope for the bindings is specified (the optional second parameter for ko.applyBindings()). So, for example in my application there are many scopes for different parts of the page, and the Window's <div> gets basically outside of the scope it's supposed to be in, so Knockout can't update the window's content dynamically because it doesn't know that it wants to be updated (since it's outside of the scope that Knockout looks inside).
I think it would be much better to append the new <div> just after the element that initiated kendoWindow. This would certainly eliminate this problem.
Is there any specific reason why you append the new <div> to the end of <body>?
/Jacob
I have a problem with the Window widget: The widget creates a <div> and moves content of the specified element that I want to appear inside the window. Finally it all gets appended just before the closing tag of <body>.
This makes it difficult to work with e.g. KnockoutJS if a scope for the bindings is specified (the optional second parameter for ko.applyBindings()). So, for example in my application there are many scopes for different parts of the page, and the Window's <div> gets basically outside of the scope it's supposed to be in, so Knockout can't update the window's content dynamically because it doesn't know that it wants to be updated (since it's outside of the scope that Knockout looks inside).
I think it would be much better to append the new <div> just after the element that initiated kendoWindow. This would certainly eliminate this problem.
Is there any specific reason why you append the new <div> to the end of <body>?
/Jacob