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

ComboBox inside RadGrid causing viewstate problems

1 Answer 79 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Arvind
Top achievements
Rank 1
Arvind asked on 12 May 2011, 11:37 PM
Hi
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

Thanks
- Arvind

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 18 May 2011, 11:44 AM
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.

Tags
ComboBox
Asked by
Arvind
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or