Getting AND setting tokens in SfAutoComplete

Let me run through my requirements really quick. I need to have a multi select autocomplete that I can both pull the token values from as well as set those values on load. 

Since I am using MVVM, it would be awesome to just use binding with SelectedItem. Based on my own testing and these threads (https://www.syncfusion.com/forums/137975/binding-of-selected-collection-doesn39t-work and https://www.syncfusion.com/forums/137091/get-selected-tokens) that doesn't seem to be possible at this point. Unfortunately I cannot wait until the end of the month for a release to fix this. 

I need a solution for this, I don't care how hacky it is at this point. I don't care if it breaks MVVM pattern. :)

My thought was to use SelectedItem to set the values on load and then SelectionChanged to update the collection manually. Unfortunately, if I set SelectedItem it keeps SelectionChanged from firing. 

Does anyone have any suggestions? 

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team June 11, 2018 09:52 AM UTC

Hi Caleb,

Thanks for contacting Syncfusion Support.

We have provided the response for SfAutoComplete Control in the incident that was created by you on Jun 09, 2018 05:27 PM. Please follow the incident for further updates.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.

Loader.
Up arrow icon