Hello everybody!
I need to add a RadDateTimePicker programatically in my UserControl. Actually everything works fine, except when I set the Id of the raddatetimepickercontrol manually.
If I do so, .SelectedDate always returns the Date that was set intially.
example:
Creating the control with this code always returns "01-01-2001" as .SelectedDate - allthough the date was changed (and the change is visible on the page).
However the following snippet:
acts how it is supposed to be.
Unfortunately I have to set an Id manually, b/c I also want to programatically add Asp RequiredFieldValidators!
Thx in advance for your help & kind regards!
Markus
I need to add a RadDateTimePicker programatically in my UserControl. Actually everything works fine, except when I set the Id of the raddatetimepickercontrol manually.
If I do so, .SelectedDate always returns the Date that was set intially.
example:
ctrl = new RadDateTimePicker(); |
ctrl.ID = DateTime.Now.Ticks.ToString(); |
ctrl.selectedDate = DateTime.Parse("01-01-2001"); |
Creating the control with this code always returns "01-01-2001" as .SelectedDate - allthough the date was changed (and the change is visible on the page).
However the following snippet:
ctrl = new RadDateTimePicker(); |
//ctrl.ID = DateTime.Now.Ticks.ToString(); |
ctrl.selectedDate = DateTime.Parse("01-01-2001"); |
acts how it is supposed to be.
Unfortunately I have to set an Id manually, b/c I also want to programatically add Asp RequiredFieldValidators!
Thx in advance for your help & kind regards!
Markus