Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
EjsDropDownList @ref="@_dropdown" TValue="int?" TItem="RowData" Placeholder="placeholder" DataSource="@list" DropDownListFieldSettings Value="Id" Text="Text">/EjsDropDownList
EjsButton OnClick="@Clicked" /EjsButton
@code {
public EjsDropDownList _dropdown;
public List list = new List() {
new RowData() { Id = 1, Text = "Text1"},
new RowData() { Id = 2, Text = "Text2"}
};
public void Clicked(MouseEventArgs args) {
var value = _dropdown.Value; // <= always null
}
public class RowData {
public int Id { get; set; }
public string Text { get; set; }
}
}