Set the height of an collapsed radDock control

3 posts, 0 answers
  1. Wouter van Beek
    Wouter  van Beek avatar
    2 posts
    Member since:
    May 2010

    Posted 09 Aug 2010 Link to this post

    Hi,

    I want to set the height of a collapsed (minimized) radDock control. I tried overriding the .RadDock.rdCollapsed style but it's marked "!important" in the base css. How can I do this?

    Thanks,
    Wouter van Beek
  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 09 Aug 2010 Link to this post

    Hi Wouter van Beek,

    You should use heavier css selector(div.RadDock.rdCollapsed) in order to apply desired styles, e.g.
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
        <style type="text/css">
            div.RadDock.rdCollapsed
            {
                height:300px !important; 
                background-color: Red;   
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                <telerik:RadDock ID="RadDock1" runat="server" Title="SomeTitle" Width="200px" Height="200px">
                    <ContentTemplate>
                        <input type="button" value="Change Size" />
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockLayout>
        </div>
        </form>
    </body>
    </html>


    Greetings,
    Petio Petkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wouter van Beek
    Wouter  van Beek avatar
    2 posts
    Member since:
    May 2010

    Posted 09 Aug 2010 Link to this post

    It works, thanks :)
Back to Top