I'm not sure whether I have a Telerik problem or a more generic Asp.Net problem. (I'm getting that 'Failed to load viewstate' error.)
I have a RadComboBox set up in the RadAjaxManager. The box in turn has a RadTabStrip and an Asp:Panel as it's updated controls.
What I would like to do is when certain values of the box are selected, is to load one of several ASCXs I have defined. If I change the value of the dropdown to a value that does not have an ASCX associated with it, I want to dispose of whatever ASCX has already been loaded. Or if a different ASCX is selected, I want to unload the old ASCX and load the new. The ASCX is to be loaded into the Asp:Panel. In order to capture the values entered into the form, I reload the form on the Page_Load postback event (using the viewstate to get the values). Up till now I haven't had to worry about this because I simple loaded all the forms at once and simply used AJAX to show/hide them as necessary.
This scheme works fine if I select a single ASCX related value, load the control, and then immediately hit save or cancel.
However if I change the dropdown multiple times, things seem to break down. I seem to lose the Ajax if that's the right way to put it. (In any case it seems to stop loading the form I've selected and if I hit cancel, I get that 'Failed to load viewstate' error.
How do I keep the viewstate under control? Suggestions?
I have a RadComboBox set up in the RadAjaxManager. The box in turn has a RadTabStrip and an Asp:Panel as it's updated controls.
What I would like to do is when certain values of the box are selected, is to load one of several ASCXs I have defined. If I change the value of the dropdown to a value that does not have an ASCX associated with it, I want to dispose of whatever ASCX has already been loaded. Or if a different ASCX is selected, I want to unload the old ASCX and load the new. The ASCX is to be loaded into the Asp:Panel. In order to capture the values entered into the form, I reload the form on the Page_Load postback event (using the viewstate to get the values). Up till now I haven't had to worry about this because I simple loaded all the forms at once and simply used AJAX to show/hide them as necessary.
This scheme works fine if I select a single ASCX related value, load the control, and then immediately hit save or cancel.
However if I change the dropdown multiple times, things seem to break down. I seem to lose the Ajax if that's the right way to put it. (In any case it seems to stop loading the form I've selected and if I hit cancel, I get that 'Failed to load viewstate' error.
How do I keep the viewstate under control? Suggestions?