I want to provide a dropdownlist with some known values. There is a chance that the user will want to input another value other than in the dropdown. Is there an example of having a dropdown list with either a optional value that can be specified in a textbox or such?
1 Answer, 1 is accepted
0
Marin Bratanov
Telerik team
answered on 19 Mar 2022, 01:03 PM
Hi Jerdobi,
The combobox can let the user input custom values, but they must then be strings as it is a mere text input in this case: https://docs.telerik.com/blazor-ui/components/combobox/custom-value. For other intents and purposes, the combo box works mostly like the dropdownlist and has the same set of events, behaviors and functionality.
If you want the users to edit the data, you may want to consider a grid, or a dedicated button in the header/footer template of the dropdown to open a dialog to let them add the desired new value.
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/.