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

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

1 Answer 35 Views
Dock
This is a migrated thread and some comments may be shown as answers.
PureRamu
Top achievements
Rank 1
PureRamu asked on 23 May 2009, 02:33 PM

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(………..)

 

RaddockLayout.findcontrol(“raddoc1”).close()

 

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

http://www.bbc.co.uk/  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

 

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 26 May 2009, 12:19 PM
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:
http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx
Tags
Dock
Asked by
PureRamu
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or