Hello,
I have a problem with checking checkboxes programmatically on the TreeView. I generate the TreeView with a DataManager
var dataManger = ej.DataManager({
url: "/Api/Test/Get"
});
var query = ej.Query().select("Id,Name");
$("#treeView").ejTreeView(
{
showCheckbox: true,
height: 300,
fields: { dataSource: dataManger, query: query, id: "Id", parentId: "HeadId", text: "Nazwa" }
});
And then I want to check a checkbox with the following code but it doesn't work.
var treeObj = $("#treeView").data("ejTreeView");
treeObj.checkNode($("#2"));
Can you help me?
Greetings.