Hello
According to the Telerik Blazor Combobox documentation, it is not possible to have e.g. decimal values when I want to use AllowCustom="true":
AllowCustom
- whether the user can enter custom values. If enabled, theValueField
must be astring
.
In my application it would be great to have the option to allow custom values, but decimal only. I've seen this for e.g. NumericTextBox. There is a parameter "T" where one can define the type of the value. Here you can see an example code extracted from my application:
<TelerikComboBox Data="@Data"
@bind-Value="@SelectedValue"
TextField="Value"
ValueField="Value"
AllowCustom="true"
Placeholder="Select a value or set a custom value">
</TelerikComboBox>
public List<MyData> Data { get; set; }
public decimal SelectedValue { get; set; }
public class MyData
{
public decimal Value { get; set; }
}
Best Regards,
Roman