Not applying width and height of RadWindow from Css ?

3 posts, 1 answers
  1. Bhuvan
    Bhuvan avatar
    50 posts
    Member since:
    Dec 2010

    Posted 03 Mar 2011 Link to this post

    I had a custom class in css page

    .RadWindow_NewAndReply
    {
        width:55%;
        height:55%;
    }

    and in design page i am using like this

    <telerik:RadWindow 
                        runat="server"
                        ID="Edit" 
                        NavigateUrl="~/Reply.aspx"
                        OnClientPageLoad="onWindowLoad"
       ReloadOnShow="true"
                        CssClass="RadWindow_NewAndReply"
                        ShowContentDuringLoad="false"
                        Modal="false"
                        Behaviors="Close,Move,Minimize,Maximize"
                        VisibleStatusbar="false">
    </telerik:RadWindow>

    but its not appling.. what may be the problem? 


    Regards
    Bhuvan
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    678 posts

    Posted 03 Mar 2011 Link to this post

    Hi Bhuvan,

    RadWindow has width and height properties which are applied with an inline style directly to the main wrapping element. If you do not have set width and height to the controls, it has 300x300px by default. If you want to apply it through style, you should use !important flag in order to overwrite the inline default styles, which are heavier. In your case you should modify the css in the following way:

    .RadWindow_NewAndReply
    {
        width:55% !important;
        height:55% !important;
    }



    All the best,
    Bojo
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bhuvan
    Bhuvan avatar
    50 posts
    Member since:
    Dec 2010

    Posted 05 Mar 2011 Link to this post

    Awesome its working......
Back to Top