Get Selected Id

2 posts, 0 answers
  1. Joe
    Joe avatar
    191 posts
    Member since:
    May 2012

    Posted 08 Mar Link to this post

    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? 

  2. Joe
    Joe avatar
    191 posts
    Member since:
    May 2012

    Posted 09 Mar in reply to Joe Link to this post

    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...
Back to Top