6 Answers, 1 is accepted
Can you please describe in more details what is the problem? A screen shot will be also appreciated.
Kind regards,
Alexander Valchev
the Telerik team
Hi,
We are using the latest release of telerik 2015.1.408 and observe that data binding issue is still not fixed. It is neither working on combobox/grid. When we try to deploy the code on IE it works well, but the same doesnt work on chrome. Please send us the solution or ETA for the same.
Could you please provide a small but run-able Kendo Dojo example which demonstrates your current implementation so I can examine it and advise you accordingly?
Regards,
Alexander Valchev
Telerik
Hello Alexander,
Thanks for your reply.
The chrome issue has been resolved but now I am unable to bind the "checked" property of kendo treeview(checkboxes).
I have data with json format and those having a isChecked:true ,I want that to bind to treeview checkbox but its not accepting that code.
Please have a look
The scenario is like this:
//Json data in flatdata variable
var flatdata = [{ "columnId": null, "hasChildren": true, "id": 1, "isChecked": true, "objectId": 1029578706, "parentId": null, "name": "Audit" },
{ "columnId": 11, "hasChildren": false, "id": 19, "isChecked": true, "objectId": 1029578706, "parentId": 1, "name": "AuditId" },
{ "columnId": 4, "hasChildren": false, "id": 20, "isChecked": true, "objectId": 1029578706, "parentId": 1, "name": "FieldName" }];
//Binding that to treeview.
$("#treeview").kendoTreeView({
checkboxes: {
checkChildren: true,
},
dataTextField: "name",
dataSource: {
transport: {
read: function (options) {
var id = options.data.id || null;
options.success($.grep(flatdata, function (x) {
return x.parentId == id;
}));
}
}, schema: {
model: {
id: "id",
hasChildren: function (x) {
var id = x.id;
for (var i = 0; i < flatdata.length; i++) {
if (flatdata[i].parentId == id) {
return true;
}
}
return false;
}
}
}
}
})
Everything is fine ,Means the Parent-child relationship is working fine .
You can find in that flatdata ,there is a property isChecked, I want to assign that property to treeview,so that I can checked the checkboxes whose isChecked=true.
Means here Audit and AuditId should be checked condition.
Please have a look into it.
Thanks
Sriraksha
Please use 'checked' instead of 'isChecked' and the TreeView will automatically update the checkboxes state. For your convenience I prepared a small example:
- http://dojo.telerik.com/@valchev/ejUmU
Regards,
Alexander Valchev
Telerik