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..?
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
}