Doesnt bind
Hi, I'm having problem binding a SfMultiSelect control.
<SfMultiSelect TValue="string[]" @bind-Value="@tDTag.Value_Task_Tmp" TItem="MultiSelectData" DataSource="@multiSelectData">
<MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings>
</SfMultiSelect>
When using this code, I cant select items (or remove items). See attached gif (gif1.gif).
When replacing the "@bind-Value" with "Value", everything works great (but ofc doesn't bind).
Other code:
public class MultiSelectData
{
public string ID { get; set; }
public string Text { get; set; }
}
public TDTag(){
public string[] Value_Task_Tmp
{ get; set; } }
Attachment: gif1_3e083f.rar
- Simple sample which reproduces the issue or modify the provided sample as per your requirement.
- If any specific replication procedures you have followed .
Video Link : https://www.syncfusion.com/downloads/support/forum/168625/ze/BlazorApp1_-_Google_Chrome_2021-09-07_15-46-24-517390780.zip
Thank you for your quick response. I have upgraded 19.2.0.60.
I see that it work's great in your solution, and if I remove all the items in my TValue="string[]" it works for me aswell.
But as soon as I have values in there, it behaves very strange.
I have multiple multiselect controls on the same page, could this be an issue?
Should I add values to public string[] Value_Task_Tmp in some certain way for the values to "bind"?
Hi, this is sorted. I'm not sure why :).
Thank you so much for your help.
- 4 Replies
- 2 Participants
-
CA Carl-Johan
- Sep 6, 2021 11:40 AM UTC
- Sep 8, 2021 05:41 AM UTC