Skip to content

Commit 954a498

Browse files
committed
Fix the master detail export.
1 parent 9f12fa6 commit 954a498

File tree

1 file changed

+2
-2
lines changed
  • grid/detail-grid-excel-export/KendoUIMVC5/Views/Home

1 file changed

+2
-2
lines changed

grid/detail-grid-excel-export/KendoUIMVC5/Views/Home/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
var deferred = $.Deferred();
5555
5656
// get the index of the master row
57-
var masterRowIndex = e.masterRow.index();
57+
var masterRowIndex = e.masterRow.index(".k-master-row");
5858
5959
// add the deferred to the list of promises
6060
detailExportPromises.push(deferred);
@@ -106,7 +106,7 @@
106106
// merge the detail export sheet rows with the master sheet rows
107107
// loop backwards so the masterRowIndex doesn't need to be updated
108108
for (var i = detailExports.length - 1; i >= 0; i--) {
109-
var masterRowIndex = Math.max(detailExports[i].masterRowIndex, 1);
109+
var masterRowIndex = detailExports[i].masterRowIndex + 1;
110110
111111
var sheet = detailExports[i].sheet;
112112

0 commit comments

Comments
 (0)