LoadDockLayout, Error in example ??

6 posts, 0 answers
  1. Rafael
    Rafael  avatar
    13 posts
    Member since:
    Jan 2009

    Posted 22 Jan 2009 Link to this post


    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
  2. Nikolay Raykov
    Nikolay Raykov avatar
    102 posts

    Posted 26 Jan 2009 Link to this post

    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)) 

    Nikolay Raykov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Herve
    Herve avatar
    39 posts
    Member since:
    Jun 2008

    Posted 16 Jul 2009 Link to this post

    Hi; the posted code are the same in the question and reply, can you please clarify ?


  4. Pero
    Pero avatar
    1156 posts

    Posted 21 Jul 2009 Link to this post

    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,
    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.
  5. michael
    michael avatar
    11 posts
    Member since:
    Apr 2016

    Posted 27 Apr 2016 in reply to Nikolay Raykov Link to this post

    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?
  6. Ivan Zhekov
    Ivan Zhekov avatar
    651 posts

    Posted 02 May 2016 Link to this post

    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.

    Ivan Zhekov
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top