Skip to content

Commit 112f2da

Browse files
committed
Merge pull request mcintyre321#52 from Dreiundzwanzig/pagination
Fix for pagination not working
2 parents decd3b4 + 8036aa2 commit 112f2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mvc.JQuery.Datatables/DataTablesResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ DataTablesData GetResults(IQueryable<TSource> data, DataTablesParam param)
116116
var result = new DataTablesData
117117
{
118118
iTotalRecords = totalRecords,
119-
iTotalDisplayRecords = page.Length,
119+
iTotalDisplayRecords = filteredData.Count() + param.iDisplayStart,
120120
sEcho = param.sEcho,
121121
aaData = page.Cast<object>().ToArray()
122122
};

0 commit comments

Comments
 (0)