jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree click event?

This topic contains 3 replies, has 2 voices, and was last updated by  Stanislav 6 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    click event? Posts
  • click event? #99742

    bwalsh429
    Participant

    I am using jqxtree for a navigation using the select event. The problem comes in if the user click on the same item in the tree that is already ‘selected’ the event obviously doesn’t fire. Any hopes of a click event ??

    click event? #99765

    Stanislav
    Participant

    Hello bwalsh429,

    Can you please clarify?
    What exactly do you want to achieve?
    To disable the click event on a previously clicked element?

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    click event? #99774

    bwalsh429
    Participant

    From what I read in the api docs for jqxtree, there is no ‘click’ event only a ‘select’ event. Let’s say there is a tree with nodes labeled ‘Page 1’, ‘Page 2’ and ‘Page 3’. The user selects ‘Page 2’ and the corresponding page is loaded. If the user clicks on ‘Page 2’ again the select event is not fired because that node is already selected. If there were a click event, every time the user clicks on the ‘Page 2’ node it would fire the event and load the page.

    The reason I want this the user can click on different nodes in different trees and the loaded content changes.

    Edit: Nevermind, after reading the reply, I decided to double check… I reread the ‘API Reference’, there is no ‘click’ event but there is an ‘itemClick’ event. Problem Solved.

    click event? #99778

    Stanislav
    Participant

    Hello bwalsh429,

    Glad to hear you found a solution! 😀

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.