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

Get Selected Id

1 Answer 81 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 08 Mar 2017, 08:44 PM

Take the following PanelBar:

@(Html.Kendo().PanelBar()
       .Name("topicList")
       .BindTo(Model, mappings =>
       {
           mappings.For<DropDownTopicList>(b => b.ItemDataBound((item, category) =>{ item.Text = category.Category; }).Children(category => category.Topics));
           mappings.For<TopicBank>(b => b.ItemDataBound((item, topic) =>{ item.Id = topic.ID.ToString(); item.Text = topic.Title + " - " + topic.Description; }));
       })
       .Events(ev => ev.Select("pbSelect"))
   )

 

How do I get the Id of the selected Item? 

1 Answer, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 09 Mar 2017, 04:40 PM
You can skip this question, or mark it closed... I figured it out using a different methodology than the mapping method I used in my first question in this thread...
Tags
PanelBar
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Share this question
or