Hi there,
Suppose I have a list box with a button in each row:
<SfListBox @ref="listBoxObj" TValue="string[]" DataSource="@Items" TItem="ItemModel" >
<ListBoxFieldSettings Text="Name" Value="Id" />
<ListBoxTemplates TItem="ItemModel">
<ItemTemplate>
<div>@((context as ItemModel).Name)</div>
<SfButton OnClick="OnItemDelete" IconCss="fa fa-trash"></SfButton>
</ItemTemplate>
</ListBoxTemplates>
</SfListBox>
How do I know which row's button was clicked in the OnItemDelete() handler?
Thanks
Joseph