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

DatePicker without Calendar

3 Answers 137 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
oVan
Top achievements
Rank 2
oVan asked on 04 Jun 2008, 12:21 PM

Hi everyone. I need a datepicker object where the user can only select a month and a year.

I thought about hiding the calendar inside the datepicker, leaving only the title with fast navigation buttons. So I setup the control as follows:

<tk:RadDatePicker ...> 
  <Calendar> 
    <CalendarTableStyle CssClass="cssDisplayNone" /> 
  </Calendar> 
</tk:RadDatePicker> 

Upon first rendering this works ok, but as soon as you click any of the navigation buttons, or select a month/year combination, the calendar is drawn again.

What I want is either a dateinput control that shows a month/year selection, or the title part of the calendar working as described above. A selection box like the quick popup when you click the titles would be fine too.

What is the best solution to fix/solve this?
Thanks in advance,
oVan

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 04 Jun 2008, 12:25 PM
Hello oVan,

Here is a custom implementation you can use:

http://www.telerik.com/community/code-library/submission/b311D-mdkhb.aspx

I hope you find it helpful.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
oVan
Top achievements
Rank 2
answered on 04 Jun 2008, 12:44 PM
Hi Konstantin, thank you for your quick and helpfull answer.

Two questions remain on my mind now: can this be done server-side (I doubt this), and will this work with a shared calendar?

Thanks again!
0
Konstantin Petkov
Telerik team
answered on 04 Jun 2008, 01:04 PM
Hello oVan,

Unfortunately you are correct in your assumption - it needs the client-side implementation. As to the shared calendar, you just need to get the shared calendar Client Object instead.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
oVan
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
oVan
Top achievements
Rank 2
Share this question
or