From 10951d20150fed98dabe881631637d15afcd7510 Mon Sep 17 00:00:00 2001 From: friek108 Date: Tue, 14 Apr 2015 17:01:35 +1000 Subject: [PATCH] Allow initialization of ExpandRowColumn cells even if they are hidden Related to fix #261 - the previous fix allowed for initialisation, but all content in the expanded row would only have a colspan of 1 as opposed to the amount of columns in the grid. --- assets/js/kv-grid-expand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/kv-grid-expand.js b/assets/js/kv-grid-expand.js index 0a1a282e..d609abf8 100644 --- a/assets/js/kv-grid-expand.js +++ b/assets/js/kv-grid-expand.js @@ -78,7 +78,7 @@ kvExpandRow = function (options) { $detail = $el.find('.kv-expanded-row'), vKey = $detail.data('key'), vInd = $detail.data('index'), - cols = $row.find('td:visible').length; + cols = $row.find('td').length; if (!isExpanded($icon) && !isCollapsed($icon)) { return true;