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

Problem with style of dateinput

2 Answers 54 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Amadeus
Top achievements
Rank 1
Amadeus asked on 11 Jun 2008, 02:38 PM
Hi,

How can I clear style (style = "width:100%")  for the TextBox of RadDateTimePicker control?

Best regards, Amadeus.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Jun 2008, 03:33 PM
Hi Amadeus,

You can use a CSS rule to override the default 100% width setting. For example:


.pickerWrapper_Skin  .radEnabledCss_Skin,
.pickerWrapper_Skin  .radEmptyMessageCss_Skin,
.pickerWrapper_Skin  .radHoverCss_Skin,
.pickerWrapper_Skin  .radFocusedCss_Skin,
.pickerWrapper_Skin  .radReadOnlyCss_Skin,
.pickerWrapper_Skin  .radDisabledCss_Skin,
.pickerWrapper_Skin  .radNegativeCss_Skin,
.pickerWrapper_Skin  .radInvalidCss_Skin
{
    width: auto !important;
}


This will reset the width to the textbox' browser default width. You can also set a width in pixels, but this is not the recommended approach. Use the picker control's Width property for such purposes.

Let us know if you need further advice.


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Amadeus
Top achievements
Rank 1
answered on 16 Jun 2008, 06:44 AM
Hi,

Thanks, it works cool.

Cheers, Amadeus
Tags
Calendar
Asked by
Amadeus
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Amadeus
Top achievements
Rank 1
Share this question
or