Hi Ivan,
because of the other code on my sharepoint page, I implemented it like so
$("#panelbar").kendoPanelBar({
expandMode:"single",
select:function (e) {
if ($(e.item).is(".k-state-active")) {
var that = this;
window.setTimeout(function(){that.collapse(e.item);}, 1);
}
}
});
and that is now working :)
Thanks