bind-Value not working
Hi, how do I bind-Value to a complex type in MultiSelect DropDown?
I've tried:
<SfMultiSelect TValue="ICollection<PapelViewModel>" TItem="PapelViewModel" Mode="@VisualMode.Box" @bind-Value="@UsuarioView.Papeis"
AllowCustomValue=true>
<MultiSelectFieldSettings Text="Descricao" Value="Id"></MultiSelectFieldSettings>
<SfDataManager Adaptor="Adaptors.CustomAdaptor">
<DataAdaptorComponent TModel="PapelViewModel" Action="Papel/Listar">
</DataAdaptorComponent>
</SfDataManager>
</SfMultiSelect>
But it's not working, it brings data from the DataAdaptor, and I'm able so select the items. But the value is never
bound and doesn't throw any errors, also If I already brings data from the list, it's not shown in the DropDown box
PapelViewModel is a complex type and UsuarioView.Papeis contains a ICollection of PapelViewModel
SIGN IN To post a reply.
5 Replies
BC
Berly Christopher
Syncfusion Team
August 24, 2021 02:23 PM UTC
Hi Daniel,
Greetings from Syncfusion support.
We will validate and update the further details in two business days (26th August 2021). We appreciate your patience until then. Meanwhile, please share the data source and class definition details to us that will help us to check and proceed further from our end.
Regards,
Berly B.C
DA
Daniel
August 25, 2021 03:08 PM UTC
I found a solution, changing the TValue from ICollection to a List< PapelViewModel>
worked
Apparently the MultiSelect doesn't work with an Interface
BC
Berly Christopher
Syncfusion Team
August 26, 2021 04:04 PM UTC
Hi Daniel,
Thanks for sharing information to us.
We are facing complexities while validating the requested requirement at our end. So, we will check and update the details in two business days (30th August 2021). We appreciate your patience until then.
Regards,
Berly B.C
BC
Berly Christopher
Syncfusion Team
August 31, 2021 05:46 AM UTC
Hi Daniel,
Thanks for the patience.
We have confirmed the reported issue as a bug at our end and this fix will be included weekly patch release scheduled on 14th September 2021. We appreciate your patience until then.
You can track the status of this issue from the below feedback.
Feedback Link: https://www.syncfusion.com/feedback/28296/
Regards,
Berly B.C
BC
Berly Christopher
Syncfusion Team
September 14, 2021 08:43 AM UTC
Hi Daniel,
Thanks for the patience.
We are glad to announce that fix for the issue " Need to provide support for handling ICollection for bind-value property" has been rolled out in the weekly patch release 19.2.62. We request you to update the NuGet to latest version to get rid of this issue.
For your convenience, we have prepared the sample and attached it below.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ICollection_multiselect477066546
Please let us know if you need any further assistance on this.
Regards,
Berly B.C
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
DA Daniel
- Aug 23, 2021 08:57 PM UTC
- Sep 14, 2021 08:43 AM UTC