I've got a list view defined ...
<SfListView DataSource="@GetKeys()" ShowHeader="true" HeaderTitle="Keys">
<ListViewFieldSettings TValue="RedisKey"></ListViewFieldSettings>
<ListViewTemplates TValue="RedisKey">
<Template>
@{
var currentItem = context.ToString();
<div class="rowitem">
<div>@context</div>
<div>
<span class="rowitem-icon oi oi-eye icon-view" title="View cache content" alt="View cache content" @onclick="(e => OnSelect(currentItem))"></span>
<span class="rowitem-icon oi oi-trash icon-delete" title="Delete cache content" alt="Delete cache content"></span>
</div>
</div>
}
</Template>
</ListViewTemplates>
</SfListView>
TheOnSelect method opens a modal dialog...
privatevoidOnSelect(string item)
{
dialogHeader = item;
isDialogVisible =true;
}
But, when the dialog is closed, all of the listview items are selected...
Also the screen scrolls to the bottom of the list.
Any suggestions?