Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Dock > Hide RadDock BEFORE page load

Not answered Hide RadDock BEFORE page load

Feed from this thread
  • Jon Master avatar

    Posted on Dec 21, 2011 (permalink)

    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



    Reply

  • Jon Master avatar

    Posted on Dec 21, 2011 (permalink)

    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

    Reply

  • Slav Slav admin's avatar

    Posted on Dec 23, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Dock > Hide RadDock BEFORE page load
Related resources for "Hide RadDock BEFORE page load"

ASP.NET Dock Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]