HI,
I have a grid that is created dynamically within a usercontrol that is loaded dynamically when user clicks on a TabStrip tab for the first time.
On Tab1 a user can remove one/more columns to be displayed in Tab2 containing the grid, when a user makes any changes on this Tab it causes a postback which reloads all usercontrols in the Tabstrip (according to Telerik this has to occur to keep viewstate in sync), this postback recreates the grid on Tab2 with the columns selected on Tab1.
I also set the Tab.set_postback(true) so that when the user now switches to Tab2 a postback will occur to recreate the grid with the selected columns, it's this postback where I get a viewstate error.
My guess is that the first postback caused by changes on Tab1 which causes all usercontrols in other tabs to reload is updating the viewstate for Tab2 so that now Tab2's viewstate does not match the actual grid within the usercontrol so that when the postback occurs to recreate the grid the viewstate does not match.
I am re creating the grid on Tab2 in the Page_Init and EnableColumnsViewstate = false.
Does anyone have any idea how to keep this error from happening?
I have a grid that is created dynamically within a usercontrol that is loaded dynamically when user clicks on a TabStrip tab for the first time.
On Tab1 a user can remove one/more columns to be displayed in Tab2 containing the grid, when a user makes any changes on this Tab it causes a postback which reloads all usercontrols in the Tabstrip (according to Telerik this has to occur to keep viewstate in sync), this postback recreates the grid on Tab2 with the columns selected on Tab1.
I also set the Tab.set_postback(true) so that when the user now switches to Tab2 a postback will occur to recreate the grid with the selected columns, it's this postback where I get a viewstate error.
My guess is that the first postback caused by changes on Tab1 which causes all usercontrols in other tabs to reload is updating the viewstate for Tab2 so that now Tab2's viewstate does not match the actual grid within the usercontrol so that when the postback occurs to recreate the grid the viewstate does not match.
I am re creating the grid on Tab2 in the Page_Init and EnableColumnsViewstate = false.
Does anyone have any idea how to keep this error from happening?