Good day! Here is another question on the ComboBox allowing custom additions.
When the valueNormalizer function returns, is there a simple way to have the new accepted value be automatically added to the the data list without requesting essentially a refresh?
I believe I have a good solution in place. I'll provide a code sample soon.
0
Martin Bechev
Telerik team
answered on 08 Mar 2021, 11:03 AM
Hello Keith,
In order to be added to the ComboBox list, custom values need to be pushed to the bound array collection. To ensure that the reference of the array is changed (in order to trigger the Angular change detection), the most straightforward approach is to utilize spread operator:
Please write back in case any further assistance is required for this case.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.