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

Show DatePicker or Calendar when clicking HyperlinkButton

3 Answers 89 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 16 Jul 2010, 11:19 AM
Hi,

I am using a HyperlinkButton to show a specific date. When the user clicks the hyperlink, the DatePicker or Calendar must be shown to select a new date for the hyperlink. Off course, when the user clicks somewhere else in the UserControl the Date control must automatically be hidden again.

Is there a way to use the RadDatePicker or RadCalendar to do this?

Thanks,
Danny

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 21 Jul 2010, 04:02 PM
Hello Danny Scheelings,

Thank you for contacting us.

You could use IsDropDownOpen property of RadDateTimePicker control to Open the dropdown button. Attached you can find a sample I made for you to illustrate how to accomplish this.

Please let me know if this suits your needs. 
 

Kind regards,
George
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Danny Scheelings
Top achievements
Rank 1
answered on 22 Jul 2010, 07:20 AM
Hi George,

Thanks for your answer. It leads me a bit into the right direction. The problem is that the datepicker should be invisible when the application starts. The calendar should de shown when I click the hyperlink and be hidden when the hyperlink is clicked again. Do you have a solution for this?

Thanks,
Danny
0
George
Telerik team
answered on 27 Jul 2010, 01:33 PM
Hello Danny Scheelings,

Thank you for getting back to us.

You could set Visibility property of RadDateTimePicker to Visible or Collapse where it suits your needs.

Please do not hesitate to contact us if you require any further information.

 

Sincerely yours,
George
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
DatePicker
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
George
Telerik team
Danny Scheelings
Top achievements
Rank 1
Share this question
or