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

DatePicker - capture when date has changed

1 Answer 142 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Debbie
Top achievements
Rank 1
Debbie asked on 18 Feb 2009, 03:55 PM
I am using a RadDatePicker within a custom control. What I need to do is to trigger an event when the date changes. So I've added an OnTextChanged even on the DateInput.  And I've set AutoPostBack = TRUE, but I never seem to get the textChanged event to fire. Additionally, the text doesn't actually get updated  in the datepickers date input until I pick a date, and then put my cursor back into the control again.

But if I remove this event and AutoPostBack setting the text box is updated, but how can I caputre this event?

I need the custom control (which contains the radDatePicker) to raise an event on the container page/control based on teh change of selected date in the datepicker -- either when the user picks a date on the calendar popup, or manually enters a date in the text dateinput field.

I also tried using onSelectedDateChanged even of teh DatePicker, but again, if I set AutoPostBack = true this is causing the dateinput text field not be correctly updated.

Thanks!
Debbie

1 Answer, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 20 Feb 2009, 06:41 AM
Hi Debbie,

Try the SelectedDateChanged event. Note that AutoPostBack of the DatePicker should be true.

Hope this helps.

SamJ
Tags
Ajax
Asked by
Debbie
Top achievements
Rank 1
Answers by
SamJ
Top achievements
Rank 1
Share this question
or