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

Hide RadDock BEFORE page load

2 Answers 39 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 21 Dec 2011, 11:09 AM
Hi,

I want to load a page with a RadDock object initially hidden from view.  I have used both that pageLoad event and also the OnClientInitialize event with a set_visible(false) command.  Both of these work however you see the RadDock window before it disappears.

I have thought of having the initial position being off page but then I have to ensure that the page is set to have no scrollbars or they will flash up.  One fudge after another :(

Without a fudge is there a way to have the object rendered yet remain initially visible?  

Best Regards,

Jon



2 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 21 Dec 2011, 11:16 AM
Ah, here is the great thing with forums, you spend 15 mins working on a problem before thinking that someone else will have the answer on the tip of their tongue, you then post a message.  Then you notice one little thing that somehow and unbelievably you missed and that's the answer.  But that would have remained hidden if you hadn't posted the forum message - kind of ironic given the subject in this case!

If anyone else needs this in the future, Closed="True" in the RadDock tag does the trick.  I suppose that it's a case of remembering that in this case closed and visible are related to the same thing.

Cheers,

Jon
0
Slav
Telerik team
answered on 23 Dec 2011, 08:37 AM
Hello Jon,

I am glad that you have managed to find a solution to your case!

I just want to note that although Closed="True" and Visible="False" have similar visual effect, the way they achieve it is different. If you set the RadDock with property Closed set to True the CSS style display:none will be applied to the control and if the property Visible is set to False the dock control will not be rendered on the page at all.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Dock
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Slav
Telerik team
Share this question
or