|
@using System.Collections.ObjectModel
<div class="row">
<label for="Reporter" class="col-sm-2 col-form-label form-header-name">Test</label>
<div class="col-sm-6">
<SfComboBox @ref="ComboObj" AllowCustom=@true
TItem="string"
AllowFiltering=@true
TValue="string"
@bind-Value=@this.Test
DataSource=@this.Values
Placeholder="Select an item">
<ComboBoxEvents TValue="string" Created="OnCreated"></ComboBoxEvents>
</SfComboBox>
</div>
</div>
@code{
SfComboBox<string, string> ComboObj;
public string Test { get; set; } = "Ivan";
public ObservableCollection<string> Values { get; set; } = new ObservableCollection<string> { "item1", "item2", "item3" };
public void OnCreated()
{
this.Values.Add("Ivan");
}
} |
Hello
I have this problem in version 25.1.35
Hi Sarah,
Thank you for getting back to us. After conducting thorough validation in version 25.1.25, we are pleased to inform you that the reported issue has not occurs, and the custom value properly binds to the component. To provide you with further reference and assistance, we have prepared a sample for your review in the version 25.1.35:
Sample: https://blazorplayground.syncfusion.com/VNrfNeNqTiyssIjV
If you encounter the same issue persisting, we kindly request you to modify the shared sample to replicate the issue on our end. Additionally, if the issue appears under specific circumstances, please provide us with the relevant details so that we can conduct further investigation and assist you effectively.
Regards,
Yohapuja S