Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > inserting a button in date picker

Not answered inserting a button in date picker

Feed from this thread
  • avik avatar

    Posted on May 18, 2011 (permalink)

    i want to incorporate a button in the date picker itself on click of which current date is populated

    Reply

  • Dani Dani admin's avatar

    Posted on May 19, 2011 (permalink)

    Hello Avik,

    It sounds like you wish to have something similar to a Reset button that will reset the value of RadDateTimePicker. You do not need to include that in the ControlTemplate of RadDateTimePicker.
    You can simply use a button aside your instance of RadDateTimePicker that will change the SelectedValue of the picker. SelectedValue property is of type DateTime.

    For example:

    private void btnReset_Click(object sender, RoutedEventArgs e)
            {
                this.picker.SelectedValue = DateTime.Today;
            }

    I hope this helps.

    Kind regards,
    Dani
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > inserting a button in date picker
Related resources for "inserting a button in date picker"

WPF DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]