I am looking for a server-side equivalent of the client-side function IsPinned(). I am setting my windows to be invisible each time a page is posted back; however, if they have been pinned then I want to keep them visible.
3 Answers, 1 is accepted
0
Georgi Tunev
Telerik team
answered on 27 Aug 2010, 01:23 PM
Hi Ed,
There is no such server-side property or event on the server - just like the standard popup, RadWindow is created and handled on the client only.
What I would suggest is to use the OnClientCommand event handler and if the command is "Pin" - to raise a flag (in a hidden field for example). Then you can check the value of that field on the next postback.
Best wishes,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
Thanks Georgi -- that nearly worked ... I now get the windows reappearing on a post-back but they are unpinned again, which means on the next post-back I lose them ...
What is the recommended way to keep windows alive during a post-back?
0
Georgi Tunev
Telerik team
answered on 02 Sep 2010, 09:00 AM
Hi Ed,
I am not quite sure how exactly you built the logic that you currently use, but generally speaking if you want the window to be explicitly pinned when you show it, you can set its InitialBehaviors to Pin.
e.g.
RadWindow1.InitialBehaviors = WindowBehaviors.Pin;
I hope this helps. If you still experience problems, please open a support ticket and send me a sample project that I can examine more closely.
Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items