Could use a little assistance here...
I have a RadComboBox that when changed to a certain value, does a postback and dynamically creates a RadDatePicker server side inside a Panel control and adds it to a Div on the page. Once that is done, I have an ASP:Button that when clicked, needs to get the SelectedDate value of that RadDatePicker.
I believe from what I've read, the problem is that dynamically created controls aren't available when the ASP:Button does its postback. In the button event, I'm recreating the Panel and RadDatePicker so that I can reference the controls, but once I do that, the SelectedDate value of the RadDatePicker is gone.
Can you possibly show me how this can be done so that I can dynamically create a RadDatePicker and then retrieve it's value during postback when a button is clicked? Please note that if I turn on AutoPostBack=true, I lose the dynamically created RadDatePicker on postback.
Thanks so much!
I have a RadComboBox that when changed to a certain value, does a postback and dynamically creates a RadDatePicker server side inside a Panel control and adds it to a Div on the page. Once that is done, I have an ASP:Button that when clicked, needs to get the SelectedDate value of that RadDatePicker.
I believe from what I've read, the problem is that dynamically created controls aren't available when the ASP:Button does its postback. In the button event, I'm recreating the Panel and RadDatePicker so that I can reference the controls, but once I do that, the SelectedDate value of the RadDatePicker is gone.
Can you possibly show me how this can be done so that I can dynamically create a RadDatePicker and then retrieve it's value during postback when a button is clicked? Please note that if I turn on AutoPostBack=true, I lose the dynamically created RadDatePicker on postback.
Thanks so much!