jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • harish kumar
    Member

    Hello Zohaib,

    Issue is that you have set the toggle mode to “dblClick” (or) by default its set to dblclick in jqxTree, To fix the issue you need to replace the below modified code in “_updateItemEvents” event find h.toggleMode!=”click” condition and replace with modified code.

    Actual Code :

    if (h.toggleMode != “click”) {
    h.addHandler(c, “click”, function (l) {
    h.selectItem(k.element);
    if (h.panel != null) {
    h.panel.jqxPanel({ focused: true })
    }
    h.host.focus()
    })
    }

    Modified Code :

    if (h.toggleMode != “click”) {
    h.addHandler(c, “click”, function (l) {
    if (d.length > 0) {
    clearTimeout(d.data(“timer”).hide)
    } if (h.panel != null) {
    h.panel.jqxPanel({ focused: true })
    }
    h.selectItem(k.element);
    if (k.isExpanding == undefined) {
    k.isExpanding = false
    }
    if (k.isCollapsing == undefined) {
    k.isCollapsing = false
    }
    h.panel.jqxPanel({ autoUpdate: false });
    if (d.length > 0) {
    if (!k.isExpanded) {
    if (false == k.isExpanding) {
    k.isExpanding = true; h._expandItem(h, k)
    }
    }
    }

    h.panel.jqxPanel({ autoUpdate: true })

    })
    }

    Best Regard,
    Harish Kumar A

Viewing 1 post (of 1 total)