$("#dropdowntree").kendoDropDownTree({
dataSource: {
type: "aspnetmvc-ajax",
transport: {
read: { url: "xxxxxxxxxxxxxxxxxxxxxxxxxxx" , data: forgeryToken, dataType: "json" }
}}
thank you
Hello!
I wonder if there is a possibility to create an option ala "select all", but customize it to selecting only second-level nodes or nodes with specified ids?
I'm using a dropdowntree editor on a grid column. The bound field is a list of objects.
Ex. I would not want 18' checked here, just the two children on the 2nd level:
Editor:
function equipmentEditor(container, options) {
let ds = new kendo.data.HierarchicalDataSource({
data: _equipmentTypes,
schema: {
model: {
children: "Items"
},
},
});
$("<input data-bind='value: EquipmentTypes'/>")
.attr("name", options.field)
.appendTo(container)
.kendoDropDownTree({
checkboxes: {
checkChildren: true
},
checkAll: true,
autoWidth: true,
dataTextField: "Description",
dataValueField: "Code",
dataSource: ds,
autoClose: false,
tagMode: "single",
});
_equipmentTypes data used in dataSource:
[
Posted object:
"EquipmentTypes": [
{
"Code": "17'",
"Description": "17'",
"Items": [
{
"Code": "T17.DUMP",
"Description": "17' Dump Trailer",
"Items": [],
"id": "",
"index": 0,
"checked": true,
"_level": 1,
"_tagUid": "b13353ee-cbd3-4226-8b4c-080d4ea775e4"
}
],
"index": 0,
"expanded": true,
"checked": true,
"_level": 0,
"_tagUid": "c0785273-c8bd-4a18-8598-de5d7ba6c16e"
},
{
"Code": "T17.DUMP",
"Description": "17' Dump Trailer",
"Items": [],
"id": "",
"index": 0,
"checked": true,
"_level": 1,
"_tagUid": "b13353ee-cbd3-4226-8b4c-080d4ea775e4"
}
],
The title says it all
How to get the data item from the node in the select event?
Scroll of Dropdown tree is not working when navigate through keyboard's down arrow.
We have similar implementation like below link. and in the provided link scroll bar is also not working when we navigate trough keyboard.
Link: https://dojo.telerik.com/oVoboJeq
Please let us know solution/workaround for it.
Thanks!!
I like to bind to this JSON below. De JSON should fill the dropdownlist. The first item would have a value of 0 and a text of Unknown.
{
"0": "Unknown",
"1": "Not executed",
"2": "Not reported",
"3": "Executed and Reported",
"4": "Not to be executed",
"select": null,
"table": null
}
But somehow the dropdownlist only accepts JSON like:
[
{​ "value": 0, "text": "Unknown" },
{​ "value": 1, "text": "Not executed" }​,
etc.,
]
Is it possible to configure the ddl with the most above JSON?
Hi,
i have a drop down tree created, as shown in the attachment below
i need to checked all the checkboxes by default. How to do this?
In the change event, is there any way to get the underlying data item of the selected node?
For a treeview control we can get the data item with something like this in the select event:
var dataItem = myTree.dataItem(e.node);
However, there's no "node" attribute in the change event for DropDownTree.
How do we do this?
Hi,
I have a grid that can be modified incell and in one of my cell, I have an editor that creates a dropdowntree. When i want to select an element of the dropdowntree it trigger the select event but not the change event and doesn't go in the save of my grid.
The dojo link will show you the problem
https://dojo.telerik.com/uSULOkUc
Please let me know if you have any fix for this.
Thanks.