Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > General Discussions > How to do Client Side Sorting

Answered How to do Client Side Sorting

Feed from this thread
  • Anantharaman avatar

    Posted on Feb 3, 2012 (permalink)

    Hi,
    Below is my requirement:
    I have a RadGrid with 10 columns. I need Client Side Sorting of all the columns.
    I have this Radgrid in a USer Control which is being used in many pages.
    Can you please send me a working sample of how this can be accomplished.
    Thanks
    Anantharaman

    Reply

  • Answer Princy MVP avatar

    Posted on Feb 3, 2012 (permalink)

    Hello,

    Take a look into the following forum thread which discussed the same.
    client side paging and sorting of RadGrid

    Thanks,
    Princy.

    Reply

  • Anantharaman avatar

    Posted on Feb 3, 2012 (permalink)

    Thanks Princy for the Reply.

    I tried the approach suggested by Shinu in the thread, but clicking on the header for sorting refreshes the screen (postback) and the grid disappears.
    I want the Sorting to be done on the client side without any postback.
    Also my data source for the RadGrid is a regular dataset.
    Can you please send me a working sample for the above scenario?
    Thanks
    Anantharaman

    Reply

  • Marin Marin admin's avatar

    Posted on Feb 7, 2012 (permalink)

    Hi Anantharaman,


    With a regular dataset for the datasource it means that the sort command have to be executed on the server because the actual data that is bound to the grid is in a dataset structure on the server. So a postback is required in this case when you use server-side binding to a regular dataset.
    Another option is to try to utilize a client-side binding if it is applicable in your scenario. Detailed demo of it (including sorting) can be found here:
    http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx 


    Greetings,
    Marin
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > General Discussions > How to do Client Side Sorting