Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Blogs / https://yaweriqbal.com/ / Error on grid view paging “...

Error on grid view paging “Failed to load viewstate.. “

Haansi Profile Picture Haansi 1,431

I was getting “Failed to load viewstate ..” error when I was trying to load second page of grid.
I had AllowPaging=”true”, grid page size was set but even then in client’s test environment grid paging was not working at all and throwing the following error:

“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.”.

Setting EnableViewState=false for that grid fixed this error.


Comments

*This post is locked for comments