From 2fd5fc13756d5c2c47aa6abc37f10d464838d273 Mon Sep 17 00:00:00 2001 From: Jaider Date: Fri, 28 Mar 2014 16:46:49 -0500 Subject: [PATCH 1/2] Update simplePagingGrid-0.6.0.0.js Fixing Applying CellTemplate to cells index smaller than page size --- script/simplePagingGrid-0.6.0.0.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/simplePagingGrid-0.6.0.0.js b/script/simplePagingGrid-0.6.0.0.js index 49084f2..51e2d4a 100644 --- a/script/simplePagingGrid-0.6.0.0.js +++ b/script/simplePagingGrid-0.6.0.0.js @@ -665,7 +665,7 @@ td = $(''); } - if (that._compiledCellTemplates !== null && that._compiledCellTemplates[index] !== null && index < that._compiledCellTemplates[index].length && that._compiledCellTemplates[index][rowIndex] !== null) { + if (that._compiledCellTemplates !== null && that._compiledCellTemplates[index] !== null && rowIndex < that._compiledCellTemplates[index].length && that._compiledCellTemplates[index][rowIndex] !== null) { td.html(that._compiledCellTemplates[index][rowIndex](that._sourceData)); } else { var value = rowData[propertyName]; @@ -926,4 +926,4 @@ $.fn[pluginName] = oldSimplePagingGrid; return this } -})(jQuery); \ No newline at end of file +})(jQuery); From ddd991f50b31c82e6a754718c0b1d11f593062da Mon Sep 17 00:00:00 2001 From: Jaider Date: Fri, 28 Mar 2014 16:52:43 -0500 Subject: [PATCH 2/2] Update simplePagingGrid-0.6.0.0.js