Skip to content

Commit 717a2ce

Browse files
committed
Can now do checkbox column filters successfully
1 parent 023514a commit 717a2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mvc.JQuery.Datatables/DataTablesFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private static string GetFilterClause(string query, Tuple<string, Type> column,
166166
return filteredQuery;
167167
}
168168
}
169-
var parts = query.Split('~').Select(q => string.Format("({1} == null ? \"\" : {1}.ToString()).{0}", FilterMethod(q), column.Item1));
169+
var parts = query.Split('~').SelectMany(s => s.Split('|')).Select(q => string.Format("({1} == null ? \"\" : {1}.ToString()).{0}", FilterMethod(q), column.Item1));
170170
return "(" + string.Join(") OR (", parts) + ")";
171171
}
172172

0 commit comments

Comments
 (0)