This is a migrated thread and some comments may be shown as answers.
show hide dock
1 Answer 30 Views
This is a migrated thread and some comments may be shown as answers.
Golu
Top achievements
Rank 1
Golu asked on 16 May 2009, 11:34 AM

Dear sir,

I am dynamically created a dock and load user controls, once we close any dock then how can it show.
i got javascript but not wokring on server side.
I need a server side code because our dock also a dynamcially so how can I find dock...? and how can be show..?

thanks with reagrds

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 18 May 2009, 09:24 AM
In the "MyPortal" example - once you close a RadDock it is removed from the states collection and it couldn't be used anymore.
My suggestion is to create a new RadDock with the desired UserControl

Other approach is to not remove a RadDock from the states collection once you close it. After that it will be rendered on the page(as closed RadDock) and you can show it via JavaScript, e.g.
functionShowDock(currentDock)
{
currentDock.set_closed(false);//show currentDock
currentDock.updateClientState();//updates the state, so the RadDock will persist its new state(Opened) after postback/ajax call
}
Tags
Dock
Asked by
Golu
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or