Premmerce Documentation > Table or Grid > Disable Sorting for a Specific Column
About Premmerce
Installation
Table or Grid
CSS and JS
General
Helpers
folder > TableConfig.cs
fileTableConfig
classSortable = false
to that columnpublic static class ImpactTableConfig
{
// Specifies the columns to display in the table
public static List<ColumnProperty> TableColumns = new List<ColumnProperty>() {
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Ordering) },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Name) },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.Description)**, Sortable = false** },
new ColumnProperty { HeaderKey = nameof(ImpactViewModel.CreatedOn), IsDateTimeColumn = true, ValueKey = nameof(ImpactViewModel.IsoUtcCreatedOn)}
};
}