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

Not applying width and height of RadWindow from Css ?

2 Answers 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bhuvan
Top achievements
Rank 1
Bhuvan asked on 03 Mar 2011, 06:47 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 03 Mar 2011, 08:41 AM
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!
0
Bhuvan
Top achievements
Rank 1
answered on 05 Mar 2011, 12:03 PM
Awesome its working......
Tags
Window
Asked by
Bhuvan
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Bhuvan
Top achievements
Rank 1
Share this question
or