There is currently an open issue to add server-side sorting/filtering to the angular-grid project. Has anyone found a work-around to implement this functionality with the current grid implementation? Hacky or not, I'll still take it.
There is currently an open issue to add server-side sorting/filtering to the angular-grid project. Has anyone found a work-around to implement this functionality with the current grid implementati... Stack Overflow About Products For Teams Stack OverflowPublic questions & answers
This section covers Server-Side Sorting using the Server-Side Row Model. Sorting is enabled in the grid via the sortable column definition attribute. Some example column definitions with sorting enabled are shown below: For more details on sorting configurations see the section on Row Sorting.
Introduction In this article, we are going to see ag-Grid for Angular applications. ag-Grid provides a feature to display the data in proper grid format with filtering and sorting features already included in it and many more. Ag-grid is a fully-featured and highly customizable javascript data grid.
The grid is using the Full Store by setting the grid property serverSideStoreType = full. All columns have sorting enabled using the defaultColDef.sortable = true. Rows are loaded once. All sorting is then subsequently done by the grid.
You can have more information here:
http://www.ag-grid.com/angular-grid-virtual-paging/
Any column can be sorted by clicking the header. When this happens, the datasource is called again with the new sort options.
The columns Age, Country and Year can be filtered. When this happens, the datasource is called again with the new filtering options.
$scope.gridOptions = {
enableServerSideSorting: true,
enableServerSideFilter: true
}
...
$scope.gridOptions.api.setDatasource(dataSource);
The datasource has a getRows() which can use params.startRow and params.endRow, plus params.sortModel, params.filterModel to request the data from the server via an http call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With