ComboBox inside RadGrid causing viewstate problems

2 posts, 0 answers
  1. Arvind
    Arvind avatar
    1 posts
    Member since:
    May 2011

    Posted 12 May 2011 Link to this post

    I do the following
    a)  add a ComboBox inside the EditTemplate,
    b) SAVE the Row 
    c) cause another postback from somewhere on the PAGE, thus causing the page to partially referesh irself via RadScriptManager, I get the following error:

    Line: 6
    Error: Sys.WebForms.PageRequestManagerServerErrorException: 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.

    If I take RadComboBox out and put the DropDownList or CheckBoxList, the problem stays.

    I am using the 2010.2.929.35 version of Rad ASP.Net Ajax

    - Arvind
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 18 May 2011 Link to this post

    Hello Arvind,

    Could you clarify some aspect of your scenario?

    First how do you add the RadComboBox, is it in some server-side event or on initial page load?

    In case you make a post-back from the page and you want to update only a particular part of it, you should make an ajax request and thus RadAjaxManager should be used. So please clarify what is the exact scenario that you are trying to implement.

    All the best,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top