Uniquely Identify the options in RadCombobox

2 posts, 0 answers
  1. Sachin
    Sachin avatar
    1 posts
    Member since:
    Jul 2014

    Posted 20 Jul 2017 Link to this post

    We would like add a custom attribute with a unique value to each option (<li>) in RadComboBox. Either the custom attribute needs to be added to <li> tag or add a <span> tag inside <li> tag and add custom attribute to <span> tag.

    We load the options to ComboBox using web service. I read the Item Templates are not supported when we use a web service to populate RadComboBox with data so we assume adding a <span> tag with custom attribute is not possible.

    Is there any way to achieve this?

    <ul class="rcbList">

      <li class="rcbHovered">1</li>
      <li class="rcbItem">2</li>
      <li class="rcbItem">3</li>
      <li class="rcbItem">4</li>
      <li class="rcbItem">4</li>
      <li class="rcbItem">5</li>

  2. Peter Milchev
    Peter Milchev avatar
    880 posts

    Posted 21 Jul 2017 Link to this post

    Hello Sachin,

    The Client templates are used for WebService binding scenarios and should fit your case. More information and examples could be found here:  Regards,
    Peter Milchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top