Style DatePopupButton of RadDatePicker to look like default button

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    3 posts
    Member since:
    Jul 2015

    Posted 09 Jul 2015 Link to this post

    Hello,
    I'm using a RadDatePicker with 'Default' Skin.
    It currently looks like this:

    Attachment: DatePickerControl Alt.PNG

    Is there a simple way (without creating custom skins, or button
    image) to style the DatePopupButton to look like a normal RadButton with
    icon, so the result would be something like this:

    Attachment: DatePickerControl Neu.PNG

    I tried this:

    public class DatePickerControl : RadDatePicker
    {
        protected override void OnChildrenCreated()
        {
            base.OnChildrenCreated();
            /*
            ..
             */
            DateInput.CssClass = "RadButton_Default";
            /*
             ..
             */
        }
     
    }

    but no success.
    Please help.

    Thank you,
    Alex

  2. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 14 Jul 2015 Link to this post

    Hello Alexander,

    Try using the new RenderMode of the picker:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Windows7" RenderMode="Lightweight">

    Hope this helps.

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top