Hi,
I want to use a multiselect control in the content part of a dialog control.
My code is the following:
<EjsDialog Width="600px" ShowCloseIcon="true" @bind-Visible="@DlgVisible" IsModal="true">
<DialogTemplates>
<Header>
<div style="color:blue; font-size:150%">@Person.Nom</div>
<p style="font-size:120%;font-weight:200;">Birth: @Personne.Birth_Date</p>
</Header>
<Content>
<table class="table">
<tbody>
<tr>
<td width="100">Comment</td>
<td align="left"> @Person.Comment</td>
</tr>
<tr>
<td width="100"><div style="font-weight:300">Infos</div></td>
<td>
<EjsMultiSelect @bind-Value="@Person.Infos" TValue="List<Int32>" Mode="@VisualMode.Box" DataSource="@TH_Qualities">
<MultiSelectFieldSettings Text="LABEL" Value="ID"></MultiSelectFieldSettings>
</EjsMultiSelect>
</td>
</tr>
</tbody>
</table>
</Content>
<FooterTemplate>
<div>
<EjsButton OnClick="onPrevious" Content="Previous" />
<label style="margin-left:20px; margin-right:20px">@(indexLoop + 1)/@listePersons.Count() </label>
<EjsButton OnClick="onNext" Content="Next" />
</div>
</FooterTemplate>
</DialogTemplates>
</EjsDialog>
The first time, the display is correct but when I update the Person informations through the "Next" or"Previous" buttons the display is correct except for the multiselect control which is linked to the Person .Infos (List<Int32>). The informations keep the first value and don't change.
Thanks for your help.