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

[Solved] ".SelectedIndex(0)" is not extending first item

3 Answers 73 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
GrZeCh
Top achievements
Rank 2
GrZeCh asked on 19 Nov 2009, 12:02 AM
Hello,

".SelectedIndex(0)" is not extending first item when I'm using binding. Can someone confirm that this is not only my issue?

Thanks

3 Answers, 1 is accepted

Sort by
0
GrZeCh
Top achievements
Rank 2
answered on 19 Nov 2009, 01:46 PM
Update: According to your help:

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-panelbar-server-api.html

SelectedIndex attribute allows "With this method you can determine which root item to be selected on initial rendering. If the item has childrens, the it will be expanded." and this is the issue. My PanelBar is not having any items because he uses Content attribute for each main panel item. Maybe SelectedIndex shouldn't "look" for children when selecting PanelBar item?

Thanks
0
Georgi Krustev
Telerik team
answered on 20 Nov 2009, 01:14 PM
Hello GrZeCh,

The unexpected behavior for fixed. Please try the latest build attached to this message.

Kind regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
GrZeCh
Top achievements
Rank 2
answered on 20 Nov 2009, 02:27 PM
Thanks. I've tested new build and it works now.
Tags
PanelBar
Asked by
GrZeCh
Top achievements
Rank 2
Answers by
GrZeCh
Top achievements
Rank 2
Georgi Krustev
Telerik team
Share this question
or