We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Checking checkboxes in treeview

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");



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");


 Can you help me?

1 Reply

HP Harikrishnan P Syncfusion Team August 7, 2014 04:52 PM UTC

Hi Roman,

Sorry for the inconvenience caused.

We have tried to check the checkboxes programmatically while generating treeview using data Manager. But script error is thrown while using data manager and when checkbox is enabled. We have confirmed this as a defect and an issue report has been logged for this issue. Fix for this issue will be available in our upcoming service pack release for ASP.NET MVC which is expected to be rolled out this month end. We will update this thread once our service pack release is rolled out.

Please let us know if you have further queries.


Live Chat Icon For mobile
Up arrow icon