show hide dock

2 posts, 0 answers
  1. Golu
    Golu avatar
    41 posts
    Member since:
    Dec 2008

    Posted 16 May 2009 Link to this post

    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

  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 18 May 2009 Link to this post

    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.
    currentDock.set_closed(false);//show currentDock
    currentDock.updateClientState();//updates the state, so the RadDock will persist its new state(Opened) after postback/ajax call
Back to Top