Adding custom input when filter has no match

When the user's filter query has no match, is there a way to allow adding the exact filter text as a new option in the list?  Ideally we'd like the "No results" template to display a button "add custom item" When clicked, grab the filter text, add to the list of options and select it (or add to list of already selected items).


1 Reply

IL Indhumathy Loganathan Syncfusion Team October 3, 2022 02:46 PM UTC

Hi Jason,


Greetings from Syncfusion support.


We have validated your requirement in the Dropdown Tree component. Currently, we don’t have support to add a new item in the Dropdown Tree while searching if it is not available in the tree. However, this exact feature is available in our EJ1 AutoComplete control. Please check the details at the below link.


https://help.syncfusion.com/api/angular/ejautocomplete#members:allowaddnew


Please confirm whether this control is suitable for you. If not, please revert us back to us for further assistance.


Regards,

Indhumathy L


Loader.
Up arrow icon