RadGrid bound to WCF Web Service

1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 29 Jul 2014 Link to this post


    Telerik Product and Version

    2012 and later

    Supported Browsers and Platforms

    All browsers supported by the Telerik UI for ASP.NET AJAX

    Components/Widgets used (JS frameworks, etc.)


    This code library demonstrates declarative client-side data-binding of RadGrid for ASP.NET AJAX to WCF Web Service. For this purpose you need to point the control to an existing web service and method with following signature:
       <DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
          SortParameterType="Linq"  FilterParameterType="Linq">
    public ResultData GetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)

    Where ResultData is custom class that holds data returned from the service to client:
    public class ResultData
     public int Count { get; set; }
     public List<Product> Data { get; set; }
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.