I originally posted this as a reply to a year old post.
I have a RadWindowManager with
DestroyOnClose='true' but on every postback, even after closing the
window theRadWindowManager's Windows collection still contains the
window. I do not have VisibleOnPageLoad set. Instead, on every load, I
run the following javascript.
This successfully opens all the windows minimized inside a taskbar. The
problem is that since closed windows are still in the Windows
Collection, they reappear.
I did write some code called "OnClientClose that does successfully
delete the window from the windows collection on the client side, but it
doesn't persist. That code is below:
This code was added in desperation to try and get the information
persisted to the server side. I tried setting EnableViewState to false,
but as expected that makes it forget about all Windows in the Windows
collection except for ones added during that postback, which means it
does forget about closed windows but also forgets about minimized
windows.
I am about to add a HiddenField which will contain the ClientIDs of all
Windows and then I will use that server side to deduce which windows, if
any, were closed. While I am hopeful this will work, I am sure it's not
the way it is supposed to work.
Added later! I have implemented the HiddenField solution as follows and it works successfully, but I don't think this is the proper way to achieve my goal.
and in the code behind.
This is all working, but I would pre3fer to know the "correct" way to achieve my goal.
Martin
Suggestions welcomed!!