How to access Dock state in javascript if stored in session

2 posts, 1 answers
  1. Snehal
    Snehal avatar
    21 posts
    Member since:
    Mar 2009

    Posted 16 Nov 2009 Link to this post

    Hi Team,
    If I have states saved in session using following:


    CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();  
    Session["CurrentDockStates"] = CurrentDockStates;  

    Then how can use this session stored index in javascript function to set dock position at the correct position.?

    I feel this will save my postback.
    Please treat this as urgent and reply.


  2. Answer
    Pero avatar
    1156 posts

    Posted 19 Nov 2009 Link to this post

    Hello Snehal,

    You do not have an access to the Session object on the client. Handle the LoadDockLayout server-side event (as shown in this online example) and the RadDockLayout will reposition the docks in the correct zone and at the right index. Please note that you need to create and recreate the RadDocks in the Page_Init.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top