I have an "SfMultiSelect" control in my application.It works fine as per our requirement but When I bind data in sfMultiSelect (from model class) in EditMode then selected data not showing (data is unchecked in dropdown).Please check my below and advise where it is problem,
div class="content multiselect-checkbox">
<SfMultiSelect TValue="string[]" TItem="FactorySetup" AllowFiltering="true" Mode="@VisualMode.CheckBox" @bind-Value="@selectedFactoryList"
DataSource="@LoadfactoryList" ShowSelectAll="true" EnableSelectionOrder="true" ShowDropDownIcon="true"
FilterBarPlaceholder="@GetResourceProvider.GetResourceValue(Resource, "lblFactoryList")" PopupHeight="350px">
<MultiSelectFieldSettings Text="FactoryName" Value="FactoryID"></MultiSelectFieldSettings>
</SfMultiSelect>
</div>
protected void OnEditClicked(CountrySetup args)
{
protected string[] selectedFactoryList { get; set; }
protected string[] selectedInActiveList { get; set; }
countrySetup = args;
selectedFactoryList = countrySetup.FactoryList.Replace.Split(',');
selectedInActiveList = countrySetup.InActiveList.Split(',');
mode = CommonClassEnum.FormModes.Edit;
newflag = 1;
StateHasChanged();
}
Note:-
1.countrySetup is an model class
2. the value of countrySetup.FactoryList = 1,2,4
3. the value of countrySetup.InActiveList = 1,2,5
please help
awaiting for reply..
Please help, it's my top most urgent