Hello,
I've been struggeling for sometime to figure out how to do this. I have a list of checkedKeys, and I must open the treeview with all the parent nodes for each id expanded.
This is my treeview element :
<kendo-treeview
style="max-height: 400px; height: 400px"
[nodes]="parsedData"
textField="name"
[children]="children"
[hasChildren]="hasChildren"
[(checkedKeys)]="checkedKeys"
[kendoTreeViewCheckable]="checkableSettings"
kendoTreeViewExpandable
kendoTreeViewCheckable
[animate]="false"
[(expandedKeys)]="expandedKeys"
[expandBy]="'id'"
[checkBy]="'id'"
[isChecked]="isItemChecked"
></kendo-treeview>And on the ngOnInit I call this
this.parsedData.forEach(mt => {
this.setExpandedNodes(mt);
});And finally this is the setExpandedNodes function:
setExpandedNodes(node: PropertyNode) {
if (node.children) {
node.children.forEach(el => {
if (el.children && el.children.length > 0) {
el.children.forEach(chld => {
if (this.checkedKeys.includes(chld.id)) {
this.expandedKeys.push(el.id);
console.log('Pushed to expanded keys', el);
}
this.setExpandedNodes(chld);
});
}
});
}
}Anybody know how can I achieve this?
Thanks for the help.

Right now I have two things up and running 1) the Kendo Angular pattern for using .saveAs(filename) to generate pdfs from html elements and 2) a way of saving File objects to a document library in SQL.I'd like to see if I can bridge the two by saving the finished pdfs directly to SQL by passing them to my upload component as File objects.
Is there a way to catch the finished pdf at the saveAs method invocation as a File or Blob object? Is the export method what I'd need instead and if so could you show me a demo of what the syntax should look like? If you can advise me on how to capture the file or file body correctly I can take it from there.
Hi,
Do you have an github one or two example of Kendo Grid with server Side paging implementation ?
I search complete sample with serverSide for option [kendoGridBinding] with service, pagination and LasyLoading in Angular12 with server side RestControler pagination
Regards

Hi!
Is there a way to get the index of an treeView item with the key?

Hello Every one
In the given example I use Kendo Grid with checkbox in the first column and also there is a SelectAll checkbox as column header. Also there is a TrackJS package installed. when tracksj is not initialized the click event of the select all checkbox emit "CHECKED" string as an event. And, heere is intersting, If TrackJS is initialized same event fires "UNCHECKED" value as an event :). Here is a example to reproduce and test my case.
https://stackblitz.com/edit/test-kendo-grid-checkbox?file=src/app/app.component.ts
The TrackJS is very usefull package wich allow to catch JS errors at production. And I have this issues .
Does this reported in the past?
Does it possible to have a fix or support from Kendo Team?
Hello,
I'm using the sparline component and i need to upscale the font size of the labels.
Here a stackbliz:
https://stackblitz.com/edit/angular-cdvth5
Any suggestion?
Thanks in advance,
Benedetta
We have implemented the inline edit functionalities in the Kendo Grid and we want to add some more functions such as :
we want to disable and enable some fields in inline edit based on specific conditions. How can we do that?
We are not getting any proper solution for that. So, please can you help us to implement this functionality?
Thank You.
Good day,
I am presenting data in a grid, either as a date, time or date/time. When we export to Excel, it is defaulting all to the same date format. I would like to override the format for the times when exporting. I have dug through the code and found that if I add a format: "h:mm" to the data object in the ExcelExportEvent.workbook.sheets.rows.cells it does work as I want.
The issue is that the ExcelExportEvent columns definition does not include the data needed to go back and look at my original data to look up the right format. I need the field name so i can look up the format to apply, and then line up the column indices, etc.
For example, in this image you see the columns only contain width and autoWidth. Of course some columns may be hidden, so I cannot use the indices directly.
I am hoping perhaps there is a way I can add properties to the Grid Column which are picked up by the Excel export.
Thank you for your time!

Hi,
I want to use the hierarchical drawer example, but I want that parents cannot be selected, only children (leafs) can be selected.
At this moment I am using the hierarchical drawer from the How to section on the kendo UI website, but this allows to select parent items.
This is my item template:
(At this moment we are faking the background of the parent items to be white (k-state-selected-parent), but the selected property is still true behind the scenes.)
=> I have troubles, when drawer item 1 is selected, and I expand drawer item 2, the selection dissappear on drawer item 1, because drawer item 2 is selected and expanded. It should only be possible to select drawer item 2.1 or 2.2 (for example) or in other words: expanding a parent may not lead to selection of that parent (to prevent losing the last selected item)
How to achieve this behavior?
thx