Problem with style of dateinput

3 posts, 0 answers
  1. Amadeus
    Amadeus avatar
    12 posts
    Member since:
    Aug 2007

    Posted 11 Jun 2008 Link to this post

    Hi,

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

    Best regards, Amadeus.
  2. Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 11 Jun 2008 Link to this post

    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
  3. Amadeus
    Amadeus avatar
    12 posts
    Member since:
    Aug 2007

    Posted 16 Jun 2008 Link to this post

    Hi,

    Thanks, it works cool.

    Cheers, Amadeus
Back to Top