TabStrip Performance

3 posts, 0 answers
  1. Rohan
    Rohan avatar
    2 posts
    Member since:
    Sep 2007

    Posted 28 Dec 2007 Link to this post

    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();
    TimeSpan end_time = DateTime.Now.Subtract(start_time);
  2. Kiril
    Kiril avatar
    158 posts

    Posted 28 Dec 2007 Link to this post

    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.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
  4. Rohan
    Rohan avatar
    2 posts
    Member since:
    Sep 2007

    Posted 28 Dec 2007 Link to this post

    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.
Back to Top