jQuery UI Widgets Forums General Discussions Unable to trigger custom click event

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Unable to trigger custom click event #102685

    HarishElumalai
    Participant

    $(“#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..

    Unable to trigger custom click event #102705

    Hristo
    Participant

    Hello HarishElumalai,

    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.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.