Prevent Postback on Sorting and Filtering

2 posts, 0 answers
  1. Anand
    Anand avatar
    4 posts
    Member since:
    Jan 2014

    Posted 29 Aug 2014 Link to this post

    First time I have bind the Grid with datasource & my EnableViewState=true then after when I apply sorting and Filtering then postback occure so, Please gives me a solution to prevent the postback when apply sorting and filtering on grid.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 03 Sep 2014 Link to this post

    Hi Anand,

    These operations usually require postbacks to fetch the sorted/filtered data from the server, this is how server-side data bound controls work. With this in mind, I can offer two suggestions:
    - use client-side binding: http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/client-data-source-binding/defaultcs.aspx.
    - OR, use AJAX to benefit from partial page rendering. The easiest way to do this is to wrap the RadGrid in a RadAjaxPanel control.

    You can find more details on the matter in the support ticket you had opened with the same question and that was answered by my colleague two days ago.

    On a side note - I would advise posting in the most relevant forum in order for your question to reach the most relevant audience. In this case you would have needed the RadGrid for ASP.NET AJAX Forum (http://www.telerik.com/forums/aspnet-ajax/grid) and not the Telerik Platform forum. Another suggestion that can help you get better results is running a search for your question first, because most of the similar getting started questions have already been asked and have answers readily available.


    Regards,
    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top