Winform Teleric objects initialization slow

Thread is closed for posting
2 posts, 0 answers
  1. Ron
    Ron avatar
    1 posts
    Member since:
    Jan 2009

    Posted 09 Nov 2009 Link to this post


    Having a bit of anxiety attack finding out users are experiencing slow launch times on a Office plugin using Winforms.
    Initially I thought is may be due to something I did, but found out it's all in the Telerik object initializations.
    The delays are to the point that the solution is not shippable and I'm in a bind unless I can bring these long init times down.
    Delays of 6 sec to 30 sec are being reported by many test users.

    I put in some code to measure timings, which brought me to my conclusion.
    I don't connect up the datasources until later, the long init times are with no data connected.  Also I moved all of the ResumeLayout() and performLayout()  calls to the end of the InitializeComponent() block.

    [debug_timing] =
    [0s 0m] AddinModule_AddinInitialize_Start 
    [0s 31m] AddinModule_AddinInitialize_End 
    [0s 0m] Display Form Request - Zeroed 
    [0s 0m] InitializeComponent start 
    [6s 515m] InitializeComponent end 
    [0s 62m] Form Loading 
    [0s 0m] Lookup Data Start 
    [0s 671m] Lookup Data End 
    [1s 718m] Display Form 

    Put in some more detailed timing calls, and found:

    Of this excessive initialization time:
    Approx 40% of the time is spent creating the Teleric controls and the BeginInits() , From <<<a>>> to <<<b>>>
    Approx 60% pf the time is spent in the Teleric EndInit() calls,  From <<c>> to <<<d>>>

    private void InitializeComponent() 
    <<<a >>>>> 
    new Telerik.WinControls.UI....(); 
    <<<b >>>>>
    setup properties for each forms object 
    <<<<< c >>>>> 
    <<<<< d >>>>> 
    Moved all the ResumeLayout() and performLayout() calls here 

    I love the product, and chose it primarily to provide a UI that is in line with the Office suite.  I've noticed other users experiencing similar issues.

    Any thing else I can try?

  2. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 12 Nov 2009 Link to this post

    Hello Ron,

    Please find the answer of the same question in the support topic that you have created with the same question.

    Kind regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top