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

Uniquely Identify the options in RadCombobox

1 Answer 59 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sachin
Top achievements
Rank 1
Sachin asked on 20 Jul 2017, 05:30 PM

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>
 </ul>

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 21 Jul 2017, 12:30 PM
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.
Tags
ComboBox
Asked by
Sachin
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or