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

inserting a button in date picker

1 Answer 98 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
avik
Top achievements
Rank 1
avik asked on 18 May 2011, 01:43 PM
i want to incorporate a button in the date picker itself on click of which current date is populated

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 19 May 2011, 12:33 PM
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
Tags
DatePicker
Asked by
avik
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or