RadToolbar and UpdatePanels

2 posts, 0 answers
  1. James Legan
    James Legan avatar
    54 posts
    Member since:
    Sep 2008

    Posted 30 Oct 2008 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 31 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top