<EJ.TreeView id="treeView" nodeUnselect={this.nodeunselect} nodeClick={this.nodeclick}>
</EJ.TreeView>
[script]
nodeclick: function (e) {
var treeviewObj = $("#treeView").ejTreeView("instance");
if (treeviewObj.isSelected($("#" + e.id))) {
setTimeout(function () {
treeviewObj.unselectNode($("#" + e.id))
}.bind(this), 10)
}
} |
nodeclick: function (e) {
var treeviewObj = $("#treeView").ejTreeView("instance");
if (treeviewObj.isSelected($("#" + e.id))) {
if ($(e.currentElement).hasClass('e-text')) {
setTimeout(function () {
treeviewObj.unselectNode($("#" + e.id))
}.bind(this), 10)
}
}
} |