When importing a XLSX file with a frozen pane using server implementation(using the Document Processing Library), the dimensions of the frozen pane are missed.
The imported xlsx file appears to overflow the Kendo UI Spreadsheet component. See screencast(SpreadhsheetOverflowFrozenPane.zip)
When importing a file using server implementation, the file should be contained within the Kendo UI Spreadsheet component's view.
Reduce the amount of frozen rows/columns to fit into the widget.
Reproducible in the demos:
A popup with an error message appears.
The user should be able to navigate to the desired cell, in order to add it as a reference to the formula.
Dojo example: https://dojo.telerik.com/UWicoqeJ
The cell will display: "NO OK"
The cell should display: "OK" as it does in Excel.
When dragging a cell to edit other cells in the Spreadsheet, the Change event of the DataSource is not fired.
The issue is a regression starting with Kendo - 2022.2.621
Try to edit multiple cells by dragging a cell.
The Change event is not triggered.
The Change event should be fired.
Reported in Ticket ID: 1529288
Create an MVC application:
View:
@{
ViewBag.Title = "Home Page";
string sfile = System.IO.Path.Combine(Server.MapPath("~"), "File1.xlsx");
}
@Html.Kendo().Spreadsheet().Name("spreadsheet"))
<br />
<br />
<button class="k-button k-primary" id="export" onclick="ExportExcel()">Export Spreadsheet content</button>
<script>
function ExportExcel() {
var spread = $('#spreadsheet').getKendoSpreadsheet();
var data = JSON.stringify(spread.toJSON());
var fd = new FormData();
fd.append('wbook', data);
fd.append('sfile', "File1.xlsx");
$.ajax({
url: "@Url.Action("SaveFileExcel", "Home")",
data: fd,
contentType: "application/x-www-form-urlencoded",
processData: false,
contentType: false,
type: "POST",
statusCode: {
200: function (xhr, status, err) {
console.log('File exported!');
},
500: function (xhr, status, err) {
console.log('Internal Server Error!');
}
}
});
}
</script>
Controller:
[HttpPost]
public ActionResult SaveFileExcel(string wbook, string sFile)
{
var workbook = Telerik.Web.Spreadsheet.Workbook.FromJson(wbook);
string physicalPath = Path.Combine(Server.MapPath("~/"), sFile);
//workbook.Save("C:/inetpub/wwwroot/" + sFile
workbook.Save(physicalPath);
return new EmptyResult();
}
The Save method throws System.ExecutionEngineException
The file is saved.
When we want to add a formula in a given cell in the Spreadsheet, we double-click it and enter the "=" in it as an identifier that a formula definition will follow. If we want to include in the formula a cell that is not inside the visible range of the Spreadsheet, we scroll to that cell and select it. In Internet Explorer, if we scroll to a given cell using the arrows of the Spreadsheet's scrollbar the "double-clicked" cell becomes just a selected one and the "=" sign is converted to a string value.
When building a formula in a given cell and trying to navigate to a cell using the scrollbar, this usage stops the formula building and converts the "=" into a string.
When a user creates a formula for a given cell, they should be able to navigate through the Spreadsheet using its scrollbars.
Dojo example.
All filters are cleared.
The Spreadsheet shows Company filtered by value "Excella". This is the behavior when different columns are filtered consecutively and then "Undo" is clicked.
If you want to have only some of the default tools, you cannot do that with the Spreadsheet wrapper.
.Toolbar(t =>
{
t.Home(h =>
{
h.ExportAs();
});
})
All the tools are displayed.
Only the ExportAs tool is displayed.
Dojo: https://dojo.telerik.com/iMuMedOd
A js exception is thrown:
Uncaught TypeError: Cannot read property 'click' of undefined
kendo.all.js:168073
With the toolbar disabled the shortcuts should do nothing. There should be no exceptions.
Regression introduced in R3 2019.
Open this Spreadsheet demo. Even though the Toolbar configuration is set to false, it is not hidden. This applies only for ASP.Net Core and ASP.Net MVC.
The Toolbar is visible when set to false.
The Toolbar should be hidden.
When the Scheduler control is bound a datasource that includes a Boolean value/column in the database the Spreadsheet column presents this as "true" or "false" strings.
Allow alternate strings such as "Yes" or "No" to represent a Boolean. Would of course need to update the datasource appropriately on Edit of a cell that uses this presentation.
Currently, only the List and Number validation rules are supported when using Workbook.ToDocument();
It happens when the type of validation is text or custom
for example:
If I saved :
"validation": {
"type": "reject",
"comparerType": "custom",
"dataType": "custom",
"from": "AND(LEN(A2)<3)",
"showButton": true,
"allowNulls": true
}
I get back:
"validation": {
"type": "reject",
"comparerType": "equalTo",
"dataType": "number",
"from": "=AND(LEN(A2)<3)",
"to": "\"=\"",
"allowNulls": true
}
It happens also when the comparer type is text - it saves it as a number
Also when I use the create validator with your UI and choose a custom formula it can't be saved because the compare type is null. As a result, I must define manually the custom validator
Tested on demo-page. The export of an Excel-file containing defined names with a period such as "test.name" will result in an error.
Steps to reproduce:
Hi There,
I am facing one issue in kendo spreadsheet onchange event.
Suppose I have applied formula on one cell A1 and formula is =SUM(B1:B3)
Now one change of values in B1 to B3 on change event gets fired but whenever cell A1 values gets updated i.e. on entering value in B1 to B2, on change event doesn’t get fired.
How can I make onchange event fire for formula cell.
Thank you,
Rakesh