What Changed
In v22.1, the TabPanelModel.Tabs property changes its type from List<TabModel> to IReadOnlyList<TabModel>. The TabPanelModel.Add() method is removed from the API.
Reasons for Change
In previous versions, elements of the TabPanelModel.Tabs collection could be changed. However, this resulted in the tab panel control's malfunctions.
Impact on Existing Apps
Your applications are affected if you add or remove elements from the TabPanelModel.Tabs collection.
How to Revert to Previous Behavior
- Enable the TabModel.Visible property instead of calling the TabPanelModel.Tabs.Add(someTab) or TabPanelModel.Add() method.
- Disable the TabModel.Visible property instead of calling the TabPanelModel.Tabs.Remove() method.
C#dxReportViewer.TabPanelModel[TabContentKind.ExportOptions].Visible = false;