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

TabStrip Performance

2 Answers 71 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohan
Top achievements
Rank 1
Rohan asked on 28 Dec 2007, 08:09 AM
I am facing performance issues adding TabItems to the TabStrip when the number of TabItems required is more than 20. Sample code is provided below:-

Are there any property settings I can set/use in order to improve performance ?

DateTime start_time = DateTime.Now;
RadItemCollection tabCol = new RadItemCollection();
for (int intLoop = 0; intLoop < 30; intLoop++)
{
TabItem newTab = new TabItem(intLoop.ToString());
newTab.Tag = intLoop.ToString();
newTab.Visibility = ElementVisibility.Visible;
newTab.BackColor = Color.Blue;
newTab.DisplayStyle = DisplayStyle.Text;
newTab.Name = intLoop.ToString();
tabCol.Add(newTab);
}
radTabStrip1.Items.AddRange(tabCol);
TimeSpan end_time = DateTime.Now.Subtract(start_time);
MessageBox.Show(end_time.ToString());

2 Answers, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 28 Dec 2007, 09:42 AM
Hello Rohan,

Thank you for writing.

We did the following test: Created a new project, added references to Q3 libraries, added a RadTabStrip to the main form, and pasted the code you provided in the form's constructor, immediately following the call to the InitializeComponent method. The program was run in debug mode. The times reported ranged from ~0.43s to ~0.64s.

There's probably something else causing the performance degradation you are experiencing. Could you please send us a small project reproducing this specific behavior? This will help us track down any potential issue much faster.

If you have any additional questions, please contact us again.

Regards,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rohan
Top achievements
Rank 1
answered on 28 Dec 2007, 10:54 AM
Quick reply. Thanks. Switching to Q3 libraries from Q2 libraries instantly solved the performance problem.

Sample app using Q2 libraries takes over 3.5 seconds.
Sample app using Q3 libraries takes less than 0.5 seconds.
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Rohan
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Rohan
Top achievements
Rank 1
Share this question
or