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

Slow initial rendering and rendering after column sort

10 Answers 176 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Remco
Top achievements
Rank 1
Remco asked on 04 Jun 2011, 05:21 PM
Hello,

We're trying to incorporate the Silverlight RadGridView in our Silverlight LOB app. The RadGridview is being used to display several user customizable list views. The data is returned from a WCF Service and formatted using Json. We convert the Json data to an IList, connect the IList to the RadGridview.ItemsSource  and format the columns (width & alignment) according the user's preferences.

I noticed that the process from retrieving the data (5-500 rows) until the RadGridview_DataLoaded() event takes about a second. But after that it takes 1-3 seconds, depending on the number of rows retrieved, before the data is actually displayed. Almost the same issue occurs when trying to sort the RadGridview by clicking the Column headers. 

Scrolling the RadGridview is also quite slow, but acceptable to our beta-testers.

I really prefer using all components from 1 supplier. So before we're going to spent a lot of time testing other grid components could you explain what is causing this slow initial data rendering and how we can improve that.

Regards, Remco

10 Answers, 1 is accepted

Sort by
0
Remco
Top achievements
Rank 1
answered on 05 Jun 2011, 03:16 PM
Hi,

After several rewrites of the sourcecode I noticed the performance increases if I set AutoGeneratedColumns to false and define the RadGridview columns manually before setting the ItemsSource. A Page reload now takes about 1 - 1.5 seconds and column-sorting performance also improved. 

But I  still see some strange RadGridview rendering behavior if I change the initial Column.Width '{auto}' to  the user-preferred Column Width. Should I set the initial Column Width using a different property? See attached file: scr-telerik-20110605-set-column-width.

GridViewDataColumn Column = new GridViewDataColumn();
Column.DataMemberBinding = new System.Windows.Data.Binding(ColumnSetting.Name);
Column.Header = ColumnSetting.AttributeName;
Column.UniqueName = ColumnSetting.Name;
Column.Width = ColumnSetting.Width;

Another strange behavior occurs when I hide the first data column using Column.IsVisible=false, see attached a screenshots. What causes this behavior?

When I do not set the Column.Width and do not add Columns that should not show up all works well.

Regards, Remco
0
Vlad
Telerik team
answered on 07 Jun 2011, 09:18 AM
Hello Remco,

 We had such bug with our Q1 2011 release however this is already fixed in our Q1 2011 SP1. 

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Remco
Top achievements
Rank 1
answered on 07 Jun 2011, 10:12 AM
Hello Vlad,

Thanks for your response. 

After we had some issues with prior Telerik-updates, we're a bit anxious to upgrade. So currently we're still using release 2011.1.315.1040. Will this issue be solved if we upgrade to 2011.1.0419?

Regards, Remco
0
Vlad
Telerik team
answered on 07 Jun 2011, 11:28 AM
Hi,

 Indeed this issue is fixed in 2011.1.0419.

All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Remco
Top achievements
Rank 1
answered on 07 Jun 2011, 12:19 PM
Vlad,

I just downloaded and installed 'RadControls_for_Silverlight_4_2011_1_0419_Dev.msi', but now all our Telerik controls which were supposed to be installed in "C:\Program Files\Telerik\RadControls for Silverlight Q1 2011\Binaries\Silverlight" are all gone. The entire folder is empty!! 

Please instruct me how I can fix this...

Regards, Remco
0
Milan
Telerik team
answered on 07 Jun 2011, 12:24 PM

Hello Remco,

The folders have changed after the service pack release and the binaries should now be located in "C:\Program Files\Telerik\RadControls for Silverlight Q1 2011 SP1\". Please update all references to point to this folder. 



Regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Remco
Top achievements
Rank 1
answered on 07 Jun 2011, 12:30 PM

There is no such folder, below folder 'C:\Program Files\Telerik' I only have: 
- RadControls for Silverlight Q1 2011
- RadControls for Silverlight Q3 2010

Regards, Remco
0
Remco
Top achievements
Rank 1
answered on 07 Jun 2011, 01:26 PM
Hello Vlad,

I decided to reinstall the SP1 and choose 'Repair'. The binaries were then installed in folder 'C:\Program Files\Telerik\RadControls for Silverlight Q1 2011\Binaries\Silverlight'. And after I updated all the references in the Solutions, the rebuild and test-run finally succeeded. And the Column Width could be set to the user preferred width.

My learning point after three Telerik updates: never perform a Telerik update during working hours :-)..

Regards, Remco
0
Milan
Telerik team
answered on 07 Jun 2011, 01:31 PM
Hello Remco,

Could you please uninstall all versions of RadControls for Silverlight and install the SP1 version once again. After those steps you should be able to find the binaries in "C:\Program Files\Telerik\RadControls for Silverlight Q1 2011 SP1\Binaries"

Hope this helps.


Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Remco
Top achievements
Rank 1
answered on 07 Jun 2011, 01:43 PM
Hello Milan,

The binaries of release 2011.1.419.1040 are now all correctly installed. Maybe not in the preferred folder, but my solutions are finally working again and that's fine with me for the moment. Could this prevent the next Telerik update from being installed properly?

Regards, Remco
Tags
GridView
Asked by
Remco
Top achievements
Rank 1
Answers by
Remco
Top achievements
Rank 1
Vlad
Telerik team
Milan
Telerik team
Share this question
or