Skip to content

Commit 75ef201

Browse files
Merge pull request #7 from SyncfusionExamples/GH-3770-Sorting-Grid
Sample(GH-3770): Some changes in Wasm Sorting sample
2 parents 9d1e6b0 + 29f5cc0 commit 75ef201

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sorting_Grid_Wasm/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)