I am currently utilizing KendoPenel to showcase some information and I need to enlarge a specific panel and alter its color during the runtime if any issues are detected within the data.
For expanding and selecting the panel, I have implemented the code below:
function ExpandItemInPanelBar() {
var panelBar = $("#KendoPanel3").data("kendoPanelBar");
// By setting 2 in 'eq(2)', the third item will be expanded; you can modify it according to your requirements
panelBar.select(panelBar.element.children("li").eq(2));
var item = panelBar.select();
panelBar.expand(item);
item.addClass('myClass')
}
.myClass
{
background-color: red;
}
Even though item.addClass('myClass') appears to be taking effect (as confirmed by the "MyClass added" class when hovering over the item element in debugger), it seems that the background color change is not being applied correctly. Is there something specific that needs to be done for this particular change to become visible?