Thanks to Michael that sent us a reproduction code, we managed to find the reason for the problem. For convenience I am pasting my reply to him below:
Thank you very much for the code - it helped us find the problem. In
your code you have set DestroyOnClose
(this property is set to
false in the Window Editing demo and that is why there the problem does
not exist). When DestroyOnClose
is set to true, RadWindow's object will
be destroyed once the window is closed. The code in the content page
What happens is that the first line is executed and the window is
closed. When the second line of code takes action however, RadWindow
does not exist anymore, hence the error. To fix it, you simply need to
switch the 2 lines:
e.g. to update the grid first and then to close the window.
On a side note, I strongly recommend to check your client code and to edit it so it match the naming convention of the new framework.
Note that currently RadWindow supports both naming conventions for backward compatibility, however at some point in the future when the migration is over, we might remove the old methods and your code will not work.
All the best,
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.