inserting a button in date picker

2 posts, 0 answers
  1. avik
    avik avatar
    1 posts
    Member since:
    May 2011

    Posted 18 May 2011 Link to this post

    i want to incorporate a button in the date picker itself on click of which current date is populated
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 19 May 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top