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

Use Filter and Sort Server Side

1 Answer 254 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rolland
Top achievements
Rank 1
Rolland asked on 27 Sep 2016, 03:29 PM

Hello, 

 

I am currently Databinding elements from server side database(DB) to my grid and would like the Filter and Sort to be managed Server side too (Client side is too slow).

Is there any options available for this ? 

 

If no, is there a way to use the filter and sort from Grid to launch my own code using the values to do my own server-side query to my DB and refresh the data ? 

Thanks for the help.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Sep 2016, 12:52 PM
Hi Rolland,

You can achieve initial sorting using the following configuration:
<MasterTableView ...>
    <SortExpressions>
        <telerik:GridSortExpression FieldName="ShipName" SortOrder="Descending" />
    </SortExpressions>

As for applying default filter programmatically, please use the FireCommandEvent method as suggested in the following post:
http://www.telerik.com/forums/radgrid-enable-filter-code-behind#cel1slcp-U-pmV28CfXTrg

I hope this will prove helpful.


Regards,
Eyup
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Rolland
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or