Hey there, I am currently working with a kendoTreeView and trying to set up an action triggered by clicking on the same selected node. To achieve this, I incorporated the following code in the change event:
change : function(e) {
$("#DT-DICT-treeview").data("kendoTreeView").select()
.find("span.k-state-selected")
.removeClass("k-state-selected");
}
While this solution worked perfectly, I noticed that the background color of the selected node became transparent. To address this issue, I created a new class with the same CSS properties as the selected node and added it upon each change event. Initially, this fix seemed to work fine for the first selection, but it failed to do so on subsequent selections.
If you'd like to see an example, feel free to check out this jsFiddle link.
Here are the steps to replicate this issue:
1) Select node DT1: It turns blue
2) Select node DT2: DT1 returns to normal while DT2 becomes blue
3) Attempt to select DT1 again: Doesn't seem to be functioning anymore
Your assistance will be greatly appreciated. Thank you!