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

Telerik radGridView for WPF performance issue

3 Answers 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
BoHong
Top achievements
Rank 1
BoHong asked on 13 Mar 2014, 01:47 AM
I'm doing a project using Telerik 2011_3_1220 version. Anyother thing is nice except for one which related to the radGridView, the senario is like below:

Senario description:

I have data struction somehow like this:
a> Basic data 
Library -> Contains own properties and a List<ObjectType>
ObjectType-> Contains own typeID and other properties
ObjectInstance-> Contains own properties and a List<Property>
Property-> Contains value and name and other properties.

b> Data in ViewModel
SelectedLibraries -> List<Library>
AllObjectInstances -> Dictionary<ObjectTypeID, List<ObjectInstances>>

Now on my UI I have a treeview on left panel and gridview on right. Treeview is bind with SelectedLibraries which shows a hierarchical structure of Library and ObjectType for user to select. Upon user's selection of ObjectType, gridiview on the right side will be populated with data of the corresponding ObjectType. The data of the gridview is from AllObjectInstances[SelectedObjectTypeID]. Each ObjectInstance stand for one row, each ObjectInstance.Property.name stand for one column and each ObjectInstance.Property.value stands for the content poped into each gridview cell.



My solution:
Upon user's selection, I'll look for the corresponding collection of AllObjectInstances[SelectedObjectTypeID] and pass into a function which will translate this into a DataTable. The DataTable will take name of Property.name as column name and fill up the table with Property.value.
The gridview will be bind to this DataTable. So each time user select another ObjectType, the DataType will be re-formed again and Notify UI update. 



Problem:
If the Property contains in an ObjectInstance is not so many (less than 100), the performance is acceptable. But if the Property is more than that, every time user switch selection will take long to wait UI update which will fed up users.
For the gridview, I already enabled both row and columns virtulization.


This problem looks to me is like every time I need to do a data re-binding which could be comparatively slow, but I didn't expect can slow like this.
Is there any advise or solution to conquer this problem? Or even my solution is totally wrong I won't mind to re-structure, as long can improve the performance significantly.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 Mar 2014, 12:10 PM
Hi BoHong,

My first recommendation would be to run through our "Performance Tips and Tricks" article and verify whether you follow them. 
Another suggestion that I hope would be appropriate for you is to upgrade to our current official release. We made a lot of improvements since the version you use - the main one being the introduction of flat render mode (GroupRenderMode="Flat"), which speeds up the grid quite a bit. You can test the performance on our demos.


Regards,
Maya
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
BoHong
Top achievements
Rank 1
answered on 18 Mar 2014, 01:05 AM
Hi,

I really appreciate your advise. We do want to upgrade to latest version. But now we have this problem:
The Telerik library is purchase by one of our ex-colleague who already left us.
Here we have the 2 user accounts which previously used by 2 of the developers:
Landon.chai@sg.abb.com 
Michael.vach@sg.abb.com

But we don't know their password. And according to the purchase proof:
Free major updates until: 17 Jan 2013
Support valid until: 17 Jan 2013

Does that mean our purchase already expired?
Could you please suggest what should we do to be able to:
1. Transfer the 2 accounts to our other colleagues.
2. To get latest version and support.

Thanks so much & Best regards.
Bohong
0
Deni
Telerik team
answered on 19 Mar 2014, 02:47 PM
Hi BoHong,

I will get back to you on this via e-mail in order to discuss your options.

Regards,
Deni
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
GridView
Asked by
BoHong
Top achievements
Rank 1
Answers by
Maya
Telerik team
BoHong
Top achievements
Rank 1
Deni
Telerik team
Share this question
or