I figured this one out.
I was using the same exact code as you, and had the same problem. Change your function to this:
(e is automatically passed by the Kendo window's Open event.)
For some reason, this fixes the problem for me. Hope this helps!