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

ViewState not working for RadTabStrip

2 Answers 75 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
improwise
Top achievements
Rank 1
Iron
Iron
improwise 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
improwise
Top achievements
Rank 1
Iron
Iron
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
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
Cori
Top achievements
Rank 2
improwise
Top achievements
Rank 1
Iron
Iron
Share this question
or