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

Dynamic Radgrid with RadTapstrip

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 27 Mar 2009, 10:30 AM
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?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 31 Mar 2009, 10:54 AM
Hi Antony,

If you are ptroperly loading the user control(s) on PageInit on each page cycle, this problem should not be present. If the issue persists, you can open a formal support ticket, and send us the problematic implementation, for additional review and testing.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Antony
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or