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

ViewState not working for RadTabStrip

2 Answers 33 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Patrik Johansson
Top achievements
Rank 1
Patrik Johansson asked on 29 Mar 2011, 12:53 PM
This is very strange, it seems like our main RadTabStrip (used for navigation) does not seem to remember it's ViewState, even though it is set to true, and all other controls in the samce User Control has working viewstates. You can see this as changing the SelectedIndex doesn't seem to have any effect (all settings seem to reset to those in the .ascx file), and that events like Init() is called on every postback.

Any ideas what to look for here? Don't really know where to start since ViewState is enabled and working for eveything else? Tried experimenting with AutoPostback etc but that doesnt seem to have any effect.

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 29 Mar 2011, 01:35 PM
Hello Patrik,

Did you turn ViewState off on the ASCX file? About the Init event, the entire page lifecycle is processed on every postback, for every control, so are you doing something in the Init event that would prevent the RadTabStrip from changing its index?

I hope that helps.
0
Patrik Johansson
Top achievements
Rank 1
answered on 29 Mar 2011, 03:58 PM
I have no idea of why but suddenly it started working again with the ViewState, maybe the IIS had a bad day or something :)
Tags
TabStrip
Asked by
Patrik Johansson
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Patrik Johansson
Top achievements
Rank 1
Share this question
or