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

LoadDockLayout, Error in example ??

5 Answers 75 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rafael
Top achievements
Rank 1
Rafael asked on 22 Jan 2009, 10:22 PM
Hello.

I try use example of loadDockLayout  in this link : http://www.telerik.com/help/aspnet-ajax/dock_serversideloaddocklayout.html but
i receive one error that deserialize is not a member of system.web.httpcookie on this line :

Dim state As DockState = dockState.Deserialize(states(i))

have  other example to save and restore state of docklayout ?

Thank you

5 Answers, 1 is accepted

Sort by
0
Nikolay Raykov
Telerik team
answered on 26 Jan 2009, 10:15 AM
Hi Rafael ,

I think that you are not using the code as it is in the help article.
In the example code dockState is of type HttpCookie and does not have a Deserialize method. You should call the Deserialize method on the DockState type directly in order to deserialize the state.

Here is how the code should look like:

Dim state As DockState = DockState.Deserialize(states(i)) 

Greetings,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Herve
Top achievements
Rank 2
answered on 17 Jul 2009, 12:58 AM
Hi; the posted code are the same in the question and reply, can you please clarify ?

Thanks,

Hervé
0
Pero
Telerik team
answered on 21 Jul 2009, 06:53 AM
Hi Herve,

I have attached an example that saves the dock state in the browser cookies. It does not give any errors when executed. Additionally, you can explore our online demo that saves the state of the RadDock in the Session.


Sincerely yours,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
michael
Top achievements
Rank 1
answered on 27 Apr 2016, 10:21 PM
Hi Nikolay, I copied the same thing from the Teklerik example directly into my code just today (2016) and get the same error. Can you suggest a fix?
0
Ivan Zhekov
Telerik team
answered on 02 May 2016, 11:45 AM
This thread is almost 7 years old and any information in it could as well be dated.

To properly address the errors you are seeing, open a new thread and describe what the exact problem is -- for instance include the starting point / demo you used; or perhaps any additional configuration you have made etc.

Regards,
Ivan Zhekov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Dock
Asked by
Rafael
Top achievements
Rank 1
Answers by
Nikolay Raykov
Telerik team
Herve
Top achievements
Rank 2
Pero
Telerik team
michael
Top achievements
Rank 1
Ivan Zhekov
Telerik team
Share this question
or