Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
load on demand- failed to load viewstate exception
posted

Trying to implement behaviours on the childgrid and I get the following exception:

Async request failed 

[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.

 

 

WebHierarchicalDataGrid.DataSource = UnfilteredDataSet;

 

 

 

 

 

 

 

WebHierarchicalDataGrid.Rows.Clear();

WebHierarchicalDataGrid.DataBind();

Any idea why this is happening?

Parents
  • 37874
    posted

    Hi dev_here,

    Could you provide some more information about this issue - are you implementing these behaviors in the markup or code-behind? A sample code would be helpful. Also, when does this exception occurs? Any additional information which you think is related could be of help. Thanks.

Reply Children
No Data