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

RadGrid and WCF

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 26 Aug 2011, 08:06 PM
Hi,

I am considering Telerik for a project that has to communicate with external WCF service. What is the best approach in terms of performance to bind data from the service to RadGrid? External web service provides methods like "List<Document> GetDocuments()".

Am I able to use direct "Client-Side Binding" as described at http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx or should I call the service and bind data "OnNeedDataSource"?

Thanks,

Igor

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 01 Sep 2011, 08:51 AM
Hello Igor,

Choosing the approach deepens on your requirements.
In the worst case when a grid is bound to huge data in the web server the RadGrid gives great performance. However working with web services and JSON increase the performance:     http://blogs.telerik.com/VladimirEnchev/Posts/08-05-23/SQL_Server_sorting_paging_and_filtering_with_RadGrid_client-side_data-binding_to_WebService.aspx?ReturnURL=%2fVladimirEnchev%2fPosts.aspx
 However in this case there is some scenarios which is not supported and the RadGrid customization is more difficult.  More information about client side binding you could find here:
http://www.telerik.com/help/aspnet-ajax/grid-client-side-binding.html

If you have additional logic which needs to be applied over a received data from the web service the advanced databinding using NeedDataSource is better choice. Also in this case you have more flexibility for customizing the RadGrid and the showed data into it.

I hope this helps.

Kind regards,
Radoslav
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Igor
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or