Skip to content

Commit afb301b

Browse files
committed
Sample(GH-3770): Some changes in server Sorting sample
1 parent 29f5cc0 commit afb301b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sorting_Grid_Server/Pages/SortingEvents.razor

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ Using these events you can perform the needed actions.
4444
{
4545
if (args.RequestType.Equals(Syncfusion.Blazor.Grids.Action.Sorting))
4646
{
47-
args.Cancel = true;
47+
if (args.ColumnName.Equals(nameof(Order.OrderID)))
48+
{
49+
args.Cancel = true;
50+
}
4851
}
4952
}
5053

0 commit comments

Comments
 (0)