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

[Solved] Binding Performance with Objects

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James Pearson
Top achievements
Rank 1
James Pearson asked on 29 Jan 2010, 01:57 AM
I have a grid using simple binding method with a collection of business objects.  Properties are declared in markup using the DataField attribute.  Some properties are in nested objects and are qualified using dot notation.  Properties are largely strings with a few dates and numeric. 

Deployed app on 64-bit server with an Intel Xeon E7220 with 8 GB RAM running on Windows Server 2003 R2.  Using 64-bit .NET 2.0 framework.  When deployed, the binding of 100 rows with 40 columns takes about 700 ms.  This seems high to me.

I assume the object binding is achieved with reflection.  Are there optimizations in place?  What's the best performing method of binding data to a grid?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 03 Feb 2010, 09:45 AM
Hello James,

How fast will be data binding in general depends what column you are using in RadGrid. For example if you use GridDropwDownColumn it will take a bit longer that using GridBoundColumn. Of course binding time will depend of that features are enabled in RadGrid.

However I am not sure that 40 declarative columns with 100 rows will took 700ms to RadGrid to bind using simple binding. Can you tell how you are detecting this time? Is the time for building the business object collection included in it?

You can also visit the Optimizations tips and tricks section in our online help:
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html 
or
view the various demo applications demonstrating again performance tips with RadGrid
http://demos.telerik.com/aspnet-ajax/grid/examples/client/caching/defaultcs.aspx 
http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx and etc.

Regards,
Rusev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
James Pearson
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or