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

RadToolbar and UpdatePanels

1 Answer 62 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
James Legan
Top achievements
Rank 1
James Legan asked on 30 Oct 2008, 04:03 PM
I have an odd question / problem.

I have a RadToolbar that is defined on an aspx page, but contains no items. I populate the menu completely programatically in code behind.

I have a need for an update panel / progress indicator on the page. If I include the toolbar within the reach of the updatepanel, IIS tosses the following error.

I thought it might have been related to viewstate being enabled, but I disabled it on the control (parent) and every item as it is added programatically.

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 Oct 2008, 08:48 AM
Hello James,

Please, open a support ticket and send us a simple project demonstrating the problem.

All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolBar
Asked by
James Legan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or