Hi
I have a question on the kendo-panelbar
I added an event handler for stateChange, and in some cases, I want my user to stay on the current panelbar Item.
Basically, If I have a validation error, i want my user to stay on the current panelbar item and not navigate to the panelbar item they clicked
public onStateChange(data: Array<PanelBarItemModel>): boolean {
const previousItem: PanelBarItemModel = data.filter(item => item.focused === false)[0];
const currentItem: PanelBarItemModel = data.filter(item => item.focused === true)[0];
.........
if (previousSection === 'blah blah'&& !wasSuccessful) {
currentItem.selected = false;
currentItem.expanded = false;
previousItem.selected = true;
previousItem.expanded = true;
However, my panelBar item does not return to the current panelBar Item
What must I do in order to achieve this navigation?
Thanks