Monday, February 22, 2010

AjaxToolkit: TabContainer not visible after setting TabPanel.Visible = false

After upgrading AjaxToolkit I had the following weird problem: a TabContainer disappeared.

A short investigation showed that it was cause because I was setting a TabPanel property
tabPanel.Visible = false

Bottom line: If you set the ActiveTab of the TabContainer to Visible=false => the TabContainer will not be drawn. I'm not sure if it's a bug or a feature.

Resolution: Change the ActiveTab when you set TabPanel.Visible = false

No comments: