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?