ComboBox template drive form control value permit objects

Hello. I have a problem with the combobox using the Tempalte Driven form support.
In the combobox the data source is a list of objects con 'id' y 'name', I use the [fields] parameter to set the value and the text to correspond the id and the name. 
But when I add the ngModel property the value in the form control is the id not the object. I need to add a map of the id to the object and then asigning to anoter form control, but this is not a good work around because I'm losing the advantage to have template driven forms. I see that in the (change) event has an ItemData property with the object selected.

There is a way that the value of the ngModel could be the itemData and not the value of the combobox??


3 Replies

BC Berly Christopher Syncfusion Team October 19, 2021 07:43 AM UTC

Hi Cesar, 
  
Greetings from Syncfusion support. 
  
Currently the value property accepts only String, Number or Boolean value. So, we have already considered the requested requirement (“Provide object type support for value property”) as a feature at our end. 
  
At the planning stage for every release cycle, we review all open features, and this will be included in any of our upcoming future releases. You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link:     
  
  
Please cast your vote to make it count. We will prioritize the features every release based on the demands. If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.     
  
Regards,  
Berly B.C  



CS Cesar Smerling October 19, 2021 10:18 AM UTC

Thanks, up voted. But the request was made in 2019 and not yet implemented so I guess I'll have to wait forever.



BC Berly Christopher Syncfusion Team October 20, 2021 06:01 AM UTC

Hi Cesar, 
  
We will consider the feature and implement in the certain release based on the customer request count and priority. So, we will intimate you once the road map has been prepared.  
  
Regards, 
Berly B.C 
 


Loader.
Up arrow icon