jQWidgets Forums
Forum Replies Created
-
Author
-
January 28, 2013 at 1:53 pm in reply to: onClick jqxTree focus move on top. onClick jqxTree focus move on top. #14265
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 -
AuthorPosts