Hide RadDock BEFORE page load

3 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 21 Dec 2011 Link to this post

    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. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 21 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 23 Dec 2011 Link to this post

    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
Back to Top