@page "/datagrid-sort-api"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    DataGrid <strong>Sort API</strong>
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Set the initial sort order of your RadzenDataGrid via the <code>SortOrder</code> column property.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo <strong>First Name</strong> has <code>SortOrder="SortOrder.Descending"</code> applied on load, and a checkbox toggles <code>GotoFirstPageOnSort</code> to control whether sorting resets to page 1 or stays on the current page.
</RadzenText>

<RadzenExample ComponentName="DataGrid" Example="DataGridSortApi">
    <DataGridSortApi />
</RadzenExample>
