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

Selecting a sub item in a panelbar

3 Answers 164 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 30 Jul 2014, 08:29 PM
Hello,

Is there a way to capture the select event of a sub item in a panel bar?

Based on the sub item selected, I want to navigate to a different page.

Thanks for your time and help. 

3 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 31 Jul 2014, 10:45 AM
Hi Jesse,

Yes, the select event is raised for all items in the PanelBar.

Regards,
Kamen Bundev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Nisarg
Top achievements
Rank 1
answered on 26 Dec 2014, 11:17 PM
Hi Kamen,

I was working with a panelbar, and I wanted to get the index of the selected item. If the selected item has a parent category then how can I get the index of that parent category?
Is there a reliable way to do this?

Thank you in advance,
Nisarg
0
Petyo
Telerik team
answered on 27 Dec 2014, 10:24 AM
Hello Nisarg,

the selected item provided in the panelbar event is a DOM element - you can use the standard jQuery API to retrieve information (like its parent, its index, etc.). Please refer to the jQuery API reference for more details. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
PanelBar
Asked by
Jesse
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Nisarg
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or