Close /open in vb code ; to implement' add more to this page'

2 posts, 0 answers
  1. PureRamu
    PureRamu avatar
    37 posts
    Member since:
    Feb 2009

    Posted 23 May 2009 Link to this post

    I have to close a rad doc,in a button press

    What should I do for this?


    We can close rad docs using close button on the right hand side of every raddock

    But I want to close a rad dock in a button click

    I am expecting some thing like

    Sub Button1_click(………..)




    End sub


    I also need a way to open a rad doc in another button click

    It this two possible?



    The reason why I asking this is because


    I am trying to implement some thing like in the site  press “Add more to this page”

    It shows only the web part for which we ticked.


    One solution is to load   docs dynamically (in vb codes) depending up on check boxex.

    But I don’t like to load all dynamically.



    NB:I am  implementing personalization well working


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

    Posted 26 May 2009 Link to this post

    The RadDock control is rendered from the server and when you set Closed property to true(e.g. RadDock1.Closed = true), the RadDock will be rendered on the page. Later you could show it with client-side method radDock.set_closed(false); or RadDock.Closed=true on the server.
    My suggestion is to create all RadDocks dynamically - this means that only the RadDocks which you need will be rendered on the page.
    A simple example which illustrates how to create dynamically RadDocks and save their position on each move is available here:
Back to Top