This is a migrated thread and some comments may be shown as answers.

Panel bar item selection

1 Answer 459 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Sarthak
Top achievements
Rank 1
Veteran
Sarthak asked on 24 Nov 2020, 01:30 PM

On selecting a panel bar item I am opening up a modal which in turn returns back a true or false.if true I am displaying the new item .if false I am staying on the previous item.but in case of false scenario even if I am staying at the previous item, as the next item was clicked ,the focused and selected property of that item is getting set to true and that of the previous item to false.how do I revert the selected and focused property if I don't display the itemcontent even if the user clicks on it.

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 26 Nov 2020, 10:21 AM

Hi Sarthak,

The developer can select programmatically a panelbar item by using either the selected property of the <kendo-panelbar-item> component

https://www.telerik.com/kendo-angular-ui/components/layout/panelbar/items/#toc-selected-state

or selected property of the PanelBarItemModel when binding to local data. Please c:

https://www.telerik.com/kendo-angular-ui/components/layout/panelbar/data-binding/#toc-binding-to-local-data

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PanelBar
Asked by
Sarthak
Top achievements
Rank 1
Veteran
Answers by
Martin Bechev
Telerik team
Share this question
or