When I paste rows from an excel sheet and try to sync the datasource the submit event doesn't include the pasted rows. This works fine in version 2020.2.513, but doesn't in version 2021.1.224. Any ideas?
@(Html.Kendo().Spreadsheet()
.Name("CommentsSpreadsheet")
.HtmlAttributes(new { style = "width:100%;" })
.Toolbar(false)
.Sheetsbar(false)
.Sheets(sheets =>
{
sheets
.Add()
.Name("Comments")
.DataSource<DocumentCommentSpreadsheetEntry>(ds =>
ds.Custom()
.Batch(true)
.Transport(t => t.Read("onRead").Submit("onSubmit"))
)
.Columns(columns =>
{
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(200);
columns.Add().Width(200);
columns.Add().Width(200);
columns.Add().Width(200);
columns.Add().Width(300);
columns.Add().Width(300);
})
.Rows(rows =>
{
rows.Add().Height(30).Cells(cells =>
{
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#015991")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
});
});
})
)
<script>
function onRead(options) {
var data = [
{
Section: '',
Page: '',
Line: '',
Item: '',
Category: '',
Email: '',
Subject: '',
Comment: '',
ProposedSolution: ''
}
]
options.success(data);
}
function onSubmit(e) {
//No rows included in created or updated
console.log(e.data);
}
</script>