Kendo Vue native 3.2.6 less verbose way to v-model only the id on DropDownList?

0 Answers 121 Views
DropDownList MultiSelect
Vincent
Top achievements
Rank 3
Iron
Iron
Iron
Vincent asked on 02 May 2022, 07:57 AM | edited on 02 May 2022, 10:49 AM
With previous versions of the Kendo dropdowns I could just v-model only the ID of dataitems and end up with a simple array of values like so:
[1, 2, 3, 4]
or just a single value like number "1" in case of DropDownList

Is there a way I can achieve this result with the new 3.2.6 dropdowns but less verbose than this?

Jvxgxy (forked) - StackBlitz
Plamen
Telerik team
commented on 03 May 2022, 07:03 AM

I have inspected the example and it seems like you have found a way to get the ids of the model with the help of the computed setter. Indeed currently there is not inbuilt configuration in the component to achieve this yet we have a feature request for a similar behavior - https://feedback.telerik.com/kendo-vue-ui/1543307-add-valueprimitive-property-in-the-dropdownlist-component

If you have any specific idea about such feature or if you have further questions please don't hesitate to let us know.

 

Vincent
Top achievements
Rank 3
Iron
Iron
Iron
commented on 03 May 2022, 07:07 AM

This feature request is now quite old, is there any chance of this landing anytime soon?

I think this is quite an essential feature to include for the dropdowns especially when communicating with API's which often only care about the primitive values (for example the ID in a particular list item) and not the list items itself
Plamen
Telerik team
commented on 03 May 2022, 07:24 AM

Thank you for this feedback!

We have inspected the feature once again and it seems quite important and wanted indeed. Having this in mind we have planned its implementation and will do our best to have it done by mid June or the beginning of July.

Please follow the feedback portal item for any updates. If you have more questions or you observe other issues please don't hesitate to let us know.

No answers yet. Maybe you can help?

Tags
DropDownList MultiSelect
Asked by
Vincent
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or