I have a view with two treetables and a css defined with color for row selected.
I want when I click in a treetable redefine the color of row selected and change at the same time the color of the row selected of the other treetable.
I can redefine css on event click in one treetable with “$$(“treetable1”).define(“css”,“row_selected_blue”)” an event “onAfterSelect” but I can’t redefine the color dynamically of the second treetable at the same time ("$$(“treetable2”).define(“css”,“row_selected_red”)")
Applying/removing the CSS will not work through the define, as it won’t remove existing class from the DOM. Please use add/removeCss() methods instead: