Show DatePicker or Calendar when clicking HyperlinkButton

4 posts, 0 answers
  1. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 16 Jul 2010 Link to this post

    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
  2. George
    Admin
    George avatar
    1332 posts

    Posted 21 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Danny Scheelings
    Danny Scheelings avatar
    69 posts
    Member since:
    Jan 2006

    Posted 22 Jul 2010 Link to this post

    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
  5. George
    Admin
    George avatar
    1332 posts

    Posted 27 Jul 2010 Link to this post

    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
Back to Top