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

Date Picker Customization

1 Answer 66 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Anzar
Top achievements
Rank 2
Anzar asked on 05 Oct 2012, 04:38 AM
Hi,
how to use date picker to only pick for year and show only the year.

By
Anzar.M

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Oct 2012, 05:46 AM
Hi Anzar,

One suggestion is that you can use RadMonthYearPicker by overriding the default CSS as follows.

CSS:
<style type="text/css">
        .RadCalendarMonthView_Default #rcMView_Jan, .RadCalendarMonthView_Default #rcMView_Feb, .RadCalendarMonthView_Default #rcMView_Mar, .RadCalendarMonthView_Default #rcMView_Apr, .RadCalendarMonthView_Default #rcMView_May, .RadCalendarMonthView_Default #rcMView_Jun, .RadCalendarMonthView_Default #rcMView_Jul, .RadCalendarMonthView_Default #rcMView_Aug, .RadCalendarMonthView_Default #rcMView_Sep, .RadCalendarMonthView_Default #rcMView_Oct, .RadCalendarMonthView_Default #rcMView_Nov, .RadCalendarMonthView_Default #rcMView_Dec
        {
            display: none !important;
        }
</style>

ASPX:
<telerik:RadMonthYearPicker ID="RadMonthYearPicker1" runat="server" DateInput-DisplayDateFormat="yyyy"  DateInput-DateFormat="yyyy">
</telerik:RadMonthYearPicker>

Hope this helps.

Regards,
Princy.
Tags
Calendar
Asked by
Anzar
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or