title: KendoUI: Selecting panelbar item by item property
body: <p>In the example given on kendo's website: <a href="http://demos.kendoui.com/web/panelbar/api.html" rel="nofollow">http://demos.kendoui.com/web/panelbar/api.html</a>, it shows how you can programmatically select an item by the index position.</p>
  
  <p>How do I then, select an item based on an Id?</p>
  
  <p>This is how I'm binding my model to my Panelbar control:</p>
  
  <pre><code>.BindTo(Model.FloorPlanGroups, mappings =&gt;
      {
           mappings.For&lt;Asis.Ibss.Web.Mvc.Areas.Monitoring.Models.FloorPlanGroupModel&gt;(itemDataBound =&gt;
          itemDataBound.ItemDataBound((item, group) =&gt;
          {
             item.Text = group.Name;
             item.HtmlAttributes["data-groupid"] = group.Id;
           })
  </code></pre>
  
  <p>So, I would like to select a node based on the data-groupid, how would I go about doing it?</p>