telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
468 stars 217 forks source link

Cannot assign ID attribute to kendo-combobox #809

Closed kibbled closed 7 years ago

kibbled commented 7 years ago

Tried everything including

<kendo-combobox id="inputX"
<kendo-combobox [id]="'inputX'"
<kendo-combobox [attr.id]="'inputX'"

Neither of these propagate the ID attribute to the underlying input control.

ggkrustev commented 7 years ago

@kibbled, this is expected because id attribute is valid property of the <kendo-combobox> element. It will be incorrect to move the id value to the underlying <input /> element.

If you would like to target the <input />, for styling purposes I guess, you can still use the id of the combobox but just target input in the CSS selector. If you would like to wire a <label> element, then I would suggest you check our Label directive that works with Kendo components.

http://www.telerik.com/kendo-angular-ui/components/label/

As a side note, the Github channel should be used only for bug reports or feature requests. If you have any questions regarding specific implementation, please either open a support thread or post your question in Stackoverflow.

Will close the thread, as the question doesn't report bug or requests a feature.

kibbled commented 7 years ago

@ggkrustev I appreciate your response however there are other reasons for wanting to assign an ID to an element within HTML. Perhaps it's a feature request but I think Kendo controls should provide a way of setting ID of underlying control.

ggkrustev commented 7 years ago

Yeah, this is a valid feature request. Could you post the idea in our feedback portal?

http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-feedback

It will be great if you elaborate more on the use case, which requires explicit attribute updates of the underlying element.

jtc10005 commented 6 years ago

I know this is closed but did anyone actually request this in the feedback portal? My team is encountering this now, and I wanted to verify that it was added. I searched for it but did not find it.