Last Updated: 13 Mar 2019 09:38 by ADMIN
Created on: 12 Mar 2019 19:01
Type: Feature Request
Add id prop for ComboBox

Currently, ComboBox generates a UUID and uses it as the input tag's id property (e.g. <input id="2e048165-6468-46c0-ba39-c47b12c7fcf2" />).


As a developer, I want to be able to set my own custom id so that I can set my own label tag as a sibling to the ComboBox component.


For example, I would like this to be possible:

<label for="hello">Hello World</label>
<ComboBox id="hello" />


There is a label prop offered on ComboBox which works fine but it does not let me specify the label tag with custom class names, styling, etc.


This new id prop should be optional and ComboBox can keep using the same technique it does when no id prop is passed to it.


1 comment
Posted on: 13 Mar 2019 09:38
Hello, Rogelio,

Thank you for the suggestion.

Currently, this can be achieved using the ref of the ComboBox and programmatically setting the desired ID to the element:

I hope this approach will prove helpful in the real application.

Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items