I looked at the demo at https://demos.telerik.com/kendo-ui/menu/orientation.
The code for this demo included the following line of code.
menu.data("kendoMenu").close($("#myMenu .k-link"));
I have a Kendo window:
$("#depDialog").kendoWindow({
width: "450px",
modal: true,
title: "Add Dependency",
content: {
template: $('#javascriptTemplate').html()
},
visible: false,
resizable: false,
actions: [
{ text: "Cancel" },
{ text: "Add", primary: true }
]
});
I also have a template:
<script id="javascriptTemplate" type="text/x-kendo-template">
<div class="row mt-2">
<div class="col">
@(Html.Kendo().DropDownList()
.Name("dep_new")
.DataTextField("Name")
.DataValueField("Id")
.BindTo((System.Collections.IEnumerable)(Model.Applications.ToList()))
.SelectedIndex(0)
.ToClientTemplate()
)
</div>
<div class="col">
@(Html.Kendo().TextBox()
.Name("dep_notes_new")
.HtmlAttributes(new { style = "height: 38px;" })
.ToClientTemplate()
)
</div>
</div>
</script>
I have an empty div to load the template:
<div id="depDialog"></div>
I tried using a dialog (hence the naming) but I couldn't get it to work. Now I'm using a window, and I'm getting the following TS error:
kendo.all.js:96132 Uncaught TypeError: e.toLowerCase is not a function
at kendo.all.js:96132:1
at Function.map (jquery-3.7.0.min.js:2:3967)
at init._actions (kendo.all.js:96130:1)
at init.title (kendo.all.js:96540:1)
at new init (kendo.all.js:95806:1)
at HTMLDivElement.<anonymous> (kendo.all.js:3741:1)
at Function.each (jquery-3.7.0.min.js:2:3129)
at ce.fn.init.each (jquery-3.7.0.min.js:2:1594)
at e.fn.<computed> [as kendoWindow] (kendo.all.js:3740:1)
at init.editOnShow (index.ts:287:29)
The error line points to the kendoWindow initialization. Thoughts?
Hi. I have a spreadsheet control that can have ~7000 rows per sheet with formatting used. I need to know where to start the kendo.ui.progress component and where to end it. I tried to put the start in the selectSheet sheet Event handler:
document.getElementById('generateText').innerHTML = "Loading large page...";
$("#popUpProgressWindow").data("kendoWindow").open();
kendo.ui.progress($("#popUpProgressWindow"), true);
...but I couldn't figure out where to put the matching "hide" or:
$("#popUpProgressWindow").data("kendoWindow").close();
kendo.ui.progress($("#popUpProgressWindow"), false);
In addition, it seems like the progress component won't actually start until render event. (which is after everything has rendered).. and by then the sheet seems to be populated already.
I also tried creating an onClick event handler to start the progress component. No luck.
Thanks again for your help and patience ^__^
George
Hello,
I am using KENDOUI jQuery PDFViewer. PDFViewer essentially uses Mozilla's pdf.js library, and I was using version 2.5.207 of pdf.js. However, there are security vulnerabilities in this version (https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq). Mozilla has started using pdf.mjs and pdf.worker.mjs with version 4.x. How can I use these versions with PDFViewer?
How can I set the window.pdfjsLib.GlobalWorkerOptions.workerSrc
assignment?
Hi,
As the title suggests is it possible to create a Tile Layout where each row has a different height property?
Hi,
how to set focus to kendo TextBox widget when a kendo window opens?
I tried the following but no luck. The widget is selected and focused for a fraction of second and then selection and focus is magically removed.
$(document).ready(function () {
setTimeout(function () { $("#position").data("kendoTextBox").focus() }, 200)
});
I have an HTML table that I can successfully convert to a Kendo Grid report.
But I don't seem able to add aggregates at the bottom of the report.
If I display the totals or counts as rows in the report, they get sorted when the report is sorted by Kendo.
Is there a way to do this natively in Kendo?
All of the examples I can find online are not for HTML tables.
I'm trying to add a class to the kendo treelist arrow based on the data in the grid, however when I expand a row now, the class disappears for this and all other rows. How can I retain that class? Here is a dojo with an example. In the dojo, you will notice that if the person's name is not "Guy Wooten", they get a class of "maroon". That is then used to turn the drop arrow red. As soon as you click the person, the arrow turns black. I need it to stay red. You'll also notice that none of the subsequent ones have the red anymore either. How do I fix that?
https://dojo.telerik.com/@dojolee/IyOGeduk
Note: Neither versions 2022 or 2024 work correctly, but in 2022, the subsequent rows keep their class.
When I initialize a kendo editor from a div with content, all of the table tools are shown in the editor toolbar (insert row, insert column, etc) on initialization. Once the user clicks in the box they disappear. I prepared a Dojo showing this.
In the Dojo, you will see there are 2 different editors. The first editor uses a function I wrote that worked in version 2022 but doesn't in version 2024 of Kendo. The second editor is just a default initialization using none of my custom code. The purpose of the first one is to show the toolbar on initialization. In both instances of the editor, you will notice that the insert row, insert column, etc are showing at first and then quickly disappear. This only happens the first time the user clicks into the editor. These should not be visible until the user clicks into the editor and selects a table.
I did notice that if I initialize the div empty, then add the content later programmatically (like this: kendoEditor.value("Hello World");), the issue doesn't happen.
Once you add a table, you can't remove it using backspace or delete. Try this example:
https://dojo.telerik.com/@dojolee/OgOpalaL
Note: I also create a bug report for this here: Bug Report