How to tell whether RadWindow is pinned on the server?

4 posts, 0 answers
  1. Ed
    Ed avatar
    124 posts
    Member since:
    Jan 2008

    Posted 26 Aug 2010 Link to this post

    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.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 Aug 2010 Link to this post

    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
  3. Ed
    Ed avatar
    124 posts
    Member since:
    Jan 2008

    Posted 27 Aug 2010 Link to this post

    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?
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Sep 2010 Link to this post

    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
Back to Top