RadTreeListView performance

10 posts, 0 answers
  1. writetosat sat
    writetosat sat avatar
    5 posts
    Member since:
    Jul 2009

    Posted 15 Aug 2013 Link to this post

    Hi

    RadTreeListView is taking time to display the records when the volume of records being added at very shot intervals are high
    The same piece of code works absolutely find in RadGridView just replacing the RadTreeListView to RadGridView in xaml

    To explain further, If I have 20k records in RadTreeListView and add 10 records at a time three times in a very quick succession (few milliseconds gap), the UI freezes for a few milliseconds and displays 30 records at one go where as the same piece of code works fine in RadGridView as I can see 10 records each coming in to the Grid.

    Unfortunately I cannot post the sourcecode as it is bit complex but would like to know if I am missing anything? It could be just a property or something else or is it the behavior of RadTreeListView?

    I have one level of hierarchy in RadTreeListView and it is the same behavior even if the hierarchy do not contain any data

    The reason I am using RadTreeListView is basically it aligns the columns in the hierarchy with parent records which is missing in RadGridView

    Any information is much appreciated.
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 16 Aug 2013 Link to this post

    Hello,

    Thank you for the feedback.

    I would suggest to check Tips and Tricks help topic in order to optimize performance. Also, with Q2 2013 SP1 we provided Lightweight templates which can improve the performance as well. More information can be found here. The topics are for RadGridView but are applicable to RadTreeListView as well.
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. writetosat sat
    writetosat sat avatar
    5 posts
    Member since:
    Jul 2009

    Posted 16 Aug 2013 Link to this post

    Hi

    Thanks for the answer. I have seen the same answer for some other similar topics too.
    But as I mentioned, RadGridView works absolutely fine where as RadTreeListView doesnot.
    I do not have any major styling or custom templates.. most of them are default.
    So my question basically is why RadGridView works fine and not RadTreeListView ?

    Is there any way I can get one level hierarchy with columns aligned with the header in RadGridView so that I can leverage the performance of RadGridView with columns aligned?

    Regards
    Satheesh
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 19 Aug 2013 Link to this post

    Hello Satheesh,

    Could you open a support ticket and attach sample project so we can check the TreeListView performance in your scenario? We will debug it on our side and will assist you further.

    If you want to use RadGridView, we do not provide such build-in feature. To achieve aligned columns of parent and child grids, please check this forum thread.
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. writetosat sat
    writetosat sat avatar
    5 posts
    Member since:
    Jul 2009

    Posted 20 Aug 2013 Link to this post

    Hi

    Thanks for the reply.
    I opened a support ticket with sample solution.

    http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=728260

    It is a very simple test project but clearly shows how RadGridView behaves and how RadTreeListView behaves under load.  Very clearly RadTreeListView has issues. Please advise me as i need to use this control in a real project and completely stuck if RadTreeListView has performance issues.

    Thanks again

    Regards
    Satheesh
  7. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 20 Aug 2013 Link to this post

    Hello Satheesh,

    Thank you for the project.

    It clearly shows the difference between RadGridView and RadTreeListView performance. We will investigate it further and will contact you once we have more information.
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. writetosat sat
    writetosat sat avatar
    5 posts
    Member since:
    Jul 2009

    Posted 22 Aug 2013 Link to this post

    Hi

    Thanks for the reply. Will await for the answer. But really looking for an early solution on this

    Regards
    Satheesh
  9. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 26 Aug 2013 Link to this post

    Hi Satheesh,

    We've investigated the problem with RadTreeListView and unfortunately we cannot do much in this scenario. We will start researching possible improvements we can do after Q3 2013 release.
    For the time being we can suggest using RadObservableCollection<T> and to add all 100 items at once, not one by one. The following code will optimize the performance:

    public RadObservableCollection<DummyData> Datasource = new RadObservableCollection<DummyData>();
     
            public void Start()
            {
                long counter = 0;
     
                while (counter < Math.Pow(10, 6))
                {
                    Action ac = () =>
                    {
                        Datasource.SuspendNotifications();
                        for (int i = 0; i < 100; i++)
                        {
                            var data = new DummyData { FirstData = counter, SecondData = counter };
                            counter++;
                            Datasource.Add(data);
                        }
                        Datasource.ResumeNotifications();
                    };
     
     
                    Application.Current.Dispatcher.Invoke(ac);
                    Thread.Sleep(TimeSpan.FromMilliseconds(50));
                }
            }

     

    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. writetosat sat
    writetosat sat avatar
    5 posts
    Member since:
    Jul 2009

    Posted 30 Aug 2013 Link to this post

    Hi

    Thanks for your answer.
    This is not going to work for me as the test project code (where in I add 100 items at a time) is not same as my actual project code.
    I will be getting one record at a time at fast pace and it has the same performance issue and hence previous answer not going to work for me.

    Any other suggestions or help in this regard will be helpful.

    Regards
    Satheesh

  11. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 03 Sep 2013 Link to this post

    Hi Satheesh,

    Unfortunately, we cannot offer you another solution for your scenario. We had similar problems with RadGridView and we managed to fix them. That's why its performance is better. As to the RadTreeListView, we will start working on performance improvements after Q3 2013 release. 
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready