I have an issue with my page where everything works fine except it will not go to pages 3, 5, and 11. My datasource is a list of an object in my model. I can add, save, anything except go to those pages. Below is my code from the page. I am using Kendo 2020.3.1118 (don't have a license for anything newer). If I click on the 3, nothing happens if I am on page 2 and click the next page arrow, nothing happens. If I am on page 4 and click the next page arrow nothing happens. But if I am on page 6 and click it, I go to 7, then 8, etc. until I get to 10. It only refuses those 3 pages out of the 12 that it creates for my data. The counter on the bottom right works fine. And if I take out the pageable ability, my dropdown quits working. I have only been using Kendo for about a week or so. Once I get this figured out, this project will actually be complete. It is the last issue I have to solve. Any help would be greatly appreciated.
@(Html.Kendo().Grid(Model).Name("EditableGrid")I am trying to use the PDFViewer to display a PDF downloaded from an Azure Blob.
In my view I have:
// Create a viewer if you do not have one already. var pdfViewer = $("#pdfViewer").data("kendoPDFViewer"); if (!pdfViewer) { pdfViewer = $("#pdfViewer").kendoPDFViewer({ pdfjsProcessing: { file: "" }, width: "100%", height: 500 }).data("kendoPDFViewer"); }; // Build the desired URL to point to your handler that will return the PDF. var pdfHandlerUrl = "/Home/getBlob/" + selectedRows.BlobID; // Make the PDFViewer load the designated file. pdfViewer.fromFile(pdfHandlerUrl);
An in my controller (getBlob) I have the following:
var stream = new MemoryStream(); await file.DownloadToAsync(stream); stream.Position = 0; return new FileStreamResult(stream, "application/pdf");
But in the view - I get a pop-up error message that says: PDF file fails to process.
Any suggestions?
I've just started a new project and used the latest release of the framework (v2022.3.1109). Unfortunately I've encountered some issues which didn't appear using earlier versions of the framework (pre R1 2022 I believe).
The problems are
Is there any documentation detailing the changes from R1 2022 and how to achieve these relatively simple appearance changes?
I'm using bootstrap 5 and the kendo.bootstrap-nordic.min.css css file.
Thanks
Hello, i came accross this article
which says you can create a PDF/A3 format document but not the embedding. When would be feature available?
Regadrs,
Geetha
I'm working on a new project using version v2022.3.1109. There seems to have been a change of behavior since the last version I used. When a call to a grids datasource read method fails, the grid isn't cleared of data, as used to be the case.
This can give a user the impression the call has worked. I can trap data source errors, but there doesn't seem to be a method to clear the current data from the grid.
What's the easiest way to clear the datasource if a read call fails?
The read call looks like:
$("#Grid").data("kendoGrid").dataSource.read();
Thanks
I just performed an upgrade of our Telerik UI for MVC from version 2021.1.119.545 to 2022.3.1109 via the Upgrade Wizard on the VS 2022 Telerik extension. But now some of the javascript code is not working properly, in particular the tabStrip disable function. Here is an example of the code that previously worked fine...
var tabStrip = $("#formTabStrip").kendoTabStrip().data("kendoTabStrip");
tabStrip.disable(tabStrip.tabGroup.children().eq(5)); <== no longer works after upgrade
Any idea why this may be happening?
Thanks!
Hello,
I am Kendo Grid in MVC
The grid is set up for in-cell batch editing. One of the fields is a date field. If the date is selected using date picker the value stays in the cell, whereas if the date value is manually entered the value does not hold in the cell. Any suggestions why the value is not holding in the cell when manually entered.
Thank you
In CSP we were using script-src 'self' 'unsafe-inline'
but for security purpose need to remove 'unsafe-inline' , we added 'nonce-a9f04fd1-06cf-4948-9d66-ea306e581896' for inline script.
applied nonce for inline script
<script type="text/javascript" nonce="a9f04fd1-06cf-4948-9d66-ea306e581896">
</script>
but after applying these change kendo controls not working. Our assumption is there are dynamic inline scripts generated for kendo controls which not contains nonce. so it may cause an issue.
we also tried DeferredScripts but no success. after applying 'unsafe-inline' it works.
<script type="text/javascript" nonce="a9f04fd1-06cf-4948-9d66-ea306e581896">
@Html.Kendo().DeferredScripts()
</script>
Please suggest as we want to remove 'unsafe-inline' with kendo controls need to work.
Hi,
I have a razor page that implements a grid. I want to use javascript to set / unset the dirty markers for certain fields in the grid when there is an error.
I have searched this forum and google'd the problem, but I cannot get anything to work.
I tried :
Tried these suggestions:
Can I please get a simple example of when the on error fires the js function runs and marks / unmarks a cell dirty and the grid reflects those changes?
Here is a simplified example from a different post:
function onError(e) {
// got any error messages
if (e.errors) {
e.preventDefault();
var grid = $("#grid").data("kendoGrid");
var data = grid.dataSource.data();
for (var i = 0; i < data.length; i++) {
data[i].dirty = true;
}
grid.refresh();
}
}
Thank you for your help.