Hello,
I have a dialog with a list of some companies. I have to choose only one. How can I persist single selection type just like I can do it in the grid using: <GridSelectionSettingsType="Syncfusion.Blazor.Grids.SelectionType.Multiple"></GridSelectionSettings>
My dialog code look like this:
<SfDialog @bind-Visible="@IsVisible" ShowCloseIcon="true" Width="400" IsModal="true">
<DialogTemplates>
<Header>Choose Company to issue an invoice</Header>
<Content>
<SfListView @ref="@sfList" DataSource="@relatedCompanies" ShowCheckBox="true" >
<ListViewFieldSettings TValue="RelatedCompany" Id="Id" Text="Company.Name"></ListViewFieldSettings>
</SfListView>
</Content>
</DialogTemplates>
<DialogButtons>
<DialogButton Content="Submit" IsPrimary="true" @onclick="@OnSelect" />
<DialogButton Content="Cancel" OnClick="@Cancel" />
</DialogButtons>
</SfDialog>
With best regards
Jarosław Bolejko