This is a migrated thread and some comments may be shown as answers.

Code behind not knowing coordinates

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Sep 2010, 10:16 PM
Apologies if this is a silly question, still learning telerik...

I have a RadWindowManager that has several windows.  When a user moves them around and clicks a button that does a postback the code behind has no knowledge of the current location of the windows.  Surely it can do this...  I must be missing something obvious.  Would I have to do a postback to update the viewstate of each window?  (the viewstate is set to false for the windows, but true for the window manager so it remembers orginal windows along with newly spawned).  Do I have to keep track of the changes client side (after the client side events) and send it to the server?  I would think there is a very easy way to do this...

Thank you in advance,
John

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 27 Sep 2010, 02:03 PM
Wanted to post this for anyone else who may run into this.  Turns out I was looking in the wrong place - it has nothing to do with the RadWindow and everything to do with the RadWindowManager.  "PreserveClientState" is the key - set it to true and it will set a cookie for future loads.

http://www.sitefinity.com/help/developer-manual/radwindow.net2-telerik.webcontrols.radwindowmanager-preserveclientstate.html
Tags
Window
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or