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

Doc not remembering closed state upon postback

2 Answers 38 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dave Myers
Top achievements
Rank 1
Dave Myers asked on 11 Sep 2008, 08:28 PM
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 Answers, 1 is accepted

Sort by
0
-DJ-
Top achievements
Rank 1
answered on 12 Sep 2008, 10:36 AM
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-
0
Dave Myers
Top achievements
Rank 1
answered on 12 Sep 2008, 01:35 PM
thanks a bunch.  I wasn't sure if it was intended to save or not....
Tags
Dock
Asked by
Dave Myers
Top achievements
Rank 1
Answers by
-DJ-
Top achievements
Rank 1
Dave Myers
Top achievements
Rank 1
Share this question
or