Skip to content

Example of Toolbar and Commands in ASP.NET Core Data Grid Control

Search, export, column chooser, command column, your own toolbar items and filters outside the grid.

Filters outside the grid: the fields below call grid.reload({ from, to, shippedOnly }); the values start as DataUrlParams and bind to the action's own parameters (FilteredOrders(UiDataRequest request, DateTime? from, DateTime? to, bool shippedOnly)). Totals (Aggregates) cover every filtered order, not just the page. Toolbar: Excel / CSV / PDF export and Print (all filtered orders, with the totals), Columns (column chooser), and two items of our own (ToolbarItems, OnToolbarClick). Command column: Edit / Delete on each row (Update / Cancel while editing) and a custom Details button (OnCommandClick). Drag a header to move a column (AllowReordering), or its edge to resize it.