Examples
Filtering
Add column filtering to the Angular grid using built-in operators, custom filter components, and live updates as users refine their search criteria today.
This Angular example is being written. See the React filtering example for the conceptual model — the filterable column flag and filter operators behave identically across bindings.
import { Component } from "@angular/core";
import { GridComponent, type ColumnDefinition } from "@gp-grid/angular";
@Component({
selector: "app-filterable-grid",
standalone: true,
imports: [GridComponent],
template: `
<div style="height: 400px">
<gp-grid
[columns]="columns"
[rowData]="data"
[rowHeight]="36"
/>
</div>
`,
})
export class FilterableGridComponent {
columns: ColumnDefinition[] = [
{ field: "name", cellDataType: "text", width: 150, filterable: true },
{ field: "salary", cellDataType: "number", width: 120, filterable: true },
];
data = [/* your data */];
}Sorting
Enable single and multi-column sorting in the Angular grid, including custom comparators, programmatic sort state, and persistent sort indicators here.
Selection
Implement cell, row, and range selection in the Angular grid with keyboard shortcuts, multi-select gestures, and clipboard-friendly copy operations today.