I think I'm being stupid on this one but I need to ask.
I have a UserControl with a RadDateTimePicker and the SelectedDateChanged event set to get handled in server codebehind. When the date or time are changed by the user, the event is fired, but neither the 'sender' nor the arguments object have all of the data.
The sender is the control but the SelectedDate on the sender is null. Sometimes the sender FocusedDate has the new value. In the SelectedDateChangedEventArgs value, the OldDate and NewDate are null.
The events being fired are in this order on PostBack:
Page_Load in the parent container, where I invoke setup methods in all user controls to set their initial values.
Page_Load for all user controls.
SelectedDateChanged
Page_LoadComplete for parent
Page_LoadComplete for each UC.
Then in Page_PreRender I get the control data and save it to SessionState so that I can refresh it the next time in.
I felt a need to go through that because controls initially weren't refreshing after postback.
I'm wondering if the sender or arguments are getting trashed prior to the SelectedDateChanged event because I load from state before that event fires. But that doesn't make sense to me.
Any ideas?
Thank you VERY much.
I have a UserControl with a RadDateTimePicker and the SelectedDateChanged event set to get handled in server codebehind. When the date or time are changed by the user, the event is fired, but neither the 'sender' nor the arguments object have all of the data.
The sender is the control but the SelectedDate on the sender is null. Sometimes the sender FocusedDate has the new value. In the SelectedDateChangedEventArgs value, the OldDate and NewDate are null.
The events being fired are in this order on PostBack:
Page_Load in the parent container, where I invoke setup methods in all user controls to set their initial values.
Page_Load for all user controls.
SelectedDateChanged
Page_LoadComplete for parent
Page_LoadComplete for each UC.
Then in Page_PreRender I get the control data and save it to SessionState so that I can refresh it the next time in.
I felt a need to go through that because controls initially weren't refreshing after postback.
I'm wondering if the sender or arguments are getting trashed prior to the SelectedDateChanged event because I load from state before that event fires. But that doesn't make sense to me.
Any ideas?
Thank you VERY much.