SQL Server sorting, paging and filtering with RadGrid client-side data-binding to WebService

Friday, May 23, 2008 by Vladimir Enchev | Comments 5
It is time to post new version of my 1 mil. records demo now with pure SQL Server paging, filtering & sorting. Basically this is very similar to how RadGrid will execute queries internally when you work with LinqDataSource, ObjectDataSource or ANY other DataSourceControl with built-in server paging.

Furthermore, RadGrid is smart enough to not request all items in your collection by default if not needed even when you use direct binding via DataSource property.

It is important to note that RadGrid will not oblige you to use any special DataSourceControl, class or interface!

Conclusion: When you combine pure server-side data operations with pure JSON transfer between client and server, you can boost the speed of your web application to a great extent.

[source code]

Enjoy!

5 Comments

  • Dmitry 11 Jun 2008
    Could you attach test database
  • Vlad 16 Jun 2008
    Hi Dmitry, Unfortunately the database file is too big to be attached here - you can generate locally a database with the same structure very easily.
  • Rosen's Blog 27 Jun 2008
    Pingback from: http://blogs.telerik.com//RosenKonstantinov/Posts/08-06-27/radgrid_client_data_binding_and_ado_net_dataservices_example.aspx
  • Rich_at_Delta 20 Sep 2009
    Could you attach a project file (or Solution), I am struggling to get my head around how to configure it up to run?
  • Vlad 23 Sep 2009
    Hi Rich_at_Delta,

    You can find everything you need in the attached web site ([source code]) however since this post is very old I strongly suggest you to visit RadGrid online examples to get version:
    http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

    Vlad

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)