How to get multiple selection as List of objects In Code behind

We have used "ValueChanged" event to load DataSource dynamically from API. Together we using MultiSelectMode='Token'. But SelectionChanged Event doesn't Trigger.

3 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team December 21, 2020 12:54 PM UTC

Hi Shahid,

Greetings from Syncfusion.

We have analyzed the reported issue. We have prepared a sample based on the information provided. SelectionChanged event triggered when we update DataSource to SfComboBox's ValueChanged event. We have tried to replicate the reported issue at our end, we are afraid that we are not able to reproduce the issue at our end. We have attached sample for your reference.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/JSON_Selection-1458114710

Since we are not aware of your exact application scenario, we were not able to reproduce this issue at our end, so can you please provide complete runnable sample. This will be helpful for us to investigate further and provide you a better solution at the earliest.

Regards,
Suganya Sethuraman.
 



SA Shahid Abbas January 5, 2021 11:29 AM UTC

SelectionChanged Issue Now resolved but we couldn't able to retrieve data with  Models.When we try to access e.value always get null.we used both model as same


Attachment: Untitled_499b1693.rar


SS Suganya Sethuraman Syncfusion Team January 6, 2021 08:46 AM UTC

Hi Shahid,

Thanks for the update.

We have analyzed your query. We have fixed this issue in the sample level as below code snippet,

Code Snippet 
        private void PropiedadesCualFue_SelectionChanged(object sender, Syncfusion.XForms.ComboBox.SelectionChangedEventArgs e) 
        { 
            if (e.Value is List<object>) 
            { 
                List<object> list = e.Value as List<object>; 
            } 
        } 

Please have the modified sample,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboSelection-1760983710

Please check if the sample satisfies your requirement and if not provide complete runnable sample which will be helpful for us to provide the solution at the earliest.

Regards,
Suganya Sethuraman. 


Marked as answer
Loader.
Up arrow icon