Skip to content

Commit 2e71882

Browse files
committed
Update FilterDef.cs
1 parent 7295544 commit 2e71882

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Mvc.JQuery.Datatables/FilterDef.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ private void SetDefaultValuesAccordingToColumnType(Type t)
4242
else if (t.IsEnum)
4343
{
4444
type = "checkbox";
45-
values = Enum.GetNames(t).Cast<object>().ToArray();
45+
//values = Enum.GetNames(t).Cast<object>().ToArray();
46+
values = t.EnumValLabPairs();
4647
}
4748
else
4849
{
4950
type = "text";
5051
}
5152
}
5253
}
53-
}
54+
}

0 commit comments

Comments
 (0)