Doc not remembering closed state upon postback

3 posts, 0 answers
  1. Dave Myers
    Dave Myers avatar
    47 posts
    Member since:
    Sep 2008

    Posted 11 Sep 2008 Link to this post

    Ok, last one....(for now).  I am using the client side events with the dock to dynamically show/hide the dock. 

    function ShowHideGanttDock(docName) 
        { 
            var dock = $find(docName); 
            var isClosed = dock.get_closed(); 
            dock.set_closed(!isClosed); 
        } 

    The problem is that it is not remembering it's state after a postback (full).  Is it not supposed to remember?  Would be nice if it did.


  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 12 Sep 2008 Link to this post

    Hi Dave.

    It's not supposed to remember anything by default. You have to implement the memory yourself, by writing the state in a cookie for example.

    You can take a look at this example where cookies are used to read/write dock positions: http://demos.telerik.com/ASPNET/Prometheus/Dock/Examples/LoadSaveLayout/DefaultCS.aspx

    Regards,
    -DJ-
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave Myers
    Dave Myers avatar
    47 posts
    Member since:
    Sep 2008

    Posted 12 Sep 2008 Link to this post

    thanks a bunch.  I wasn't sure if it was intended to save or not....
Back to Top