|
@using Syncfusion.Blazor.DropDowns
@using System.Collections.Generic;
<SfDropDownList ShowClearButton="true" DataSource="@Dropdown" TValue="string" TItem="string">
<DropDownListEvents TItem="string" TValue="string" ValueChange="OnChange"></DropDownListEvents>
</SfDropDownList>
@code{
List<string> Dropdown = new List<string>{
"✓",
"⨯"
};
private void OnChange(Syncfusion.Blazor.DropDowns.ChangeEventArgs<string, string> args)
{
}
}
|
I have have the same problem, but cannot see what I am doing wrong. Please help:
<ToolbarItem Type="ItemType.Input">
<Template>
<div><strong>Records</strong></div>
<SfDropDownList ID="recordsPicker" TItem="string" TValue="string" Width="150" @bind-Value="RecordsPicker" DataSource="@RecordsSource">
<DropDownListEvents TItem="string" TValue="string" ValueChange="OnChange" ></DropDownListEvents>
</SfDropDownList>
</Template>
With code in the base file of
public async Task OnChange(ChangeEventArgs<string, string> args)
{
switch (args.Value)
{
}
}
|
public async Task OnChange(Syncfusion.Blazor.DropDowns.ChangeEventArgs<string, string> args)
{
} |