$(“#jqxTree .jqx-tree-item”).on(‘click’, function (event) {
—custom function()
});
Now I am triggering function as follows $(“#jqxTree li div”).click()`
some times it works correctly i.e my custom function gets executed but most of times inbuild jqx tree function which had been binded for that element gets executed and it throws error in console as follows
jqxcore.js:formatted:5481 Uncaught Invalid property: focused
why does your function gets executed?
Thanks in Advance..
You could use the itemClick event which is by design created for the jqxTree.
Please, take a look at this example.
More details you could find in the API Documentation page.