Hi,
On a webdatagrid, I have TemplateDatafield column, which include checkbox (for user to select rows)I am getting into troubles when having checkbox together with paging ability.This is the scene description:1) user on page #1 and checked a checkbox2) browse to page# 23)when browsing back to page #1 user gets this 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.
any help will be appreciated,
Shlomit
Hi shlomit_t
It has been a while since your post, however in case you still need assitance I would be glad to help.
I investigated your scenario but was unable to replicate your issue. Obviously, I am not aware of your implementation's specific such as whether the field is defined dynamically, however you could find useful guidelines on how to configure a templated column so that viewstate is saved correctly in the following discussion:
http://blogs.infragistics.com/forums/p/57774/295337.aspx
Additionaly, I would like to point out that you could use the (bound/unbound) Check box fields which are featured in the WebDataGrid to create a checkbox column without templating. More information about the different available column fields of the WebDataGrid is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid_Columns.html
Please contact me if you need further assistance with this matter.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support