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

How to access Dock state in javascript if stored in session

1 Answer 53 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Snehal
Top achievements
Rank 1
Snehal asked on 17 Nov 2009, 05:52 AM
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.

Regards,
      Snehal

1 Answer, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 19 Nov 2009, 09:41 AM
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,
Pero
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.
Tags
Dock
Asked by
Snehal
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or