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

4 Replies

DR Deepak Ramakrishnan Syncfusion Team September 7, 2021 01:25 PM UTC

Hi Carl, 

Greetings from Syncfusion support. 

We have validated your requirement with provided details in our end and unfortunately we couldn’t able to reproduce the reported issue . Kindly refer the video demonstration and sample for your reference. Also we suggest you to upgrade to the latest version(19.2.0.60) if you are using older version and check  whether the issue get reproduced or not 

If you still reproduce the issue after the above suggestion , kindly provide the following details to validate the issue from our end. 
 
  1. Simple sample which reproduces the issue or modify the provided sample as per your requirement.
  2. If any specific replication procedures you have followed .
 
The above details would help us to analyze the issue and provide you the better solution.

Video Link
: https://www.syncfusion.com/downloads/support/forum/168625/ze/BlazorApp1_-_Google_Chrome_2021-09-07_15-46-24-517390780.zip 
 
 
Thanks, 
Deepak R. 



CA Carl-Johan September 7, 2021 05:46 PM UTC

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"?



CA Carl-Johan September 7, 2021 06:40 PM UTC

Hi, this is sorted. I'm not sure why :).


Thank you so much for your help.



DR Deepak Ramakrishnan Syncfusion Team September 8, 2021 05:41 AM UTC

Hi Carl, 

Thanks for your update. 

We are glad to hear that your issue has been resolved . We are always happy to assist you if you need any further assistance.  

Thanks, 
Deepak R. 


Loader.
Up arrow icon