ALMMa / datatables.aspnet

Microsoft AspNet bindings and automatic parsing for jQuery DataTables along with extension methods to help on data queries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModelBinder shouldn't break if the sort field doesn't exist

kanadaj opened this issue · comments

The ModelBinder completely stops processing columns if a column is not found in the query; however, a column may be simply skipped inside the query with more sorting options following.

The line should be:
if (!Parse<int>(sortField, out _sortField)) continue;

if (!Parse<int>(sortField, out _sortField)) break;