We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem in programatically setting the selecteditem (Implementing MVVM Pattern)

Good day

I'm stuck in this problem for 4 days and here's the problem:

at the initialization of the ViewModel,I've set the the collection that will be filled with data(let's give it a name of "CountryCodeList") that is binded to the ItemsSource Property of my SfMultiColumnDropDownControl and the "SelectedCountryCode" Property that is binded to the SelectedItem Property is given with an instance with a value on it. But unfortunately my SfMultiColumnDropDownControl can't reveal automatically the value of SelectedCountryCode even if in it's ViewModel it has a instance with a value

Note: I'm implementing NotifyPropertyChange and a binding in "Mode=TwoWay" and "UpdateSourceTrigger=PropertyChanged"

I hope you can help me on this thing. Thanks


1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team March 1, 2017 01:48 PM UTC

Hi Darwin, 
Thank you for contacting Syncfusion support. 
We have analyzed your query. We are unable to reproduce your reported “Problem in programatically setting the selecteditem”. In this sample, we have select the item using MVVM pattern where we change the SelectedItem property in ViewModel.   
If your requirement is different from this, please revert by modifying the attached sample based on your application along with the replication procedure? This would be helpful to provide an appropriate solution.    
Please let us know if you have any query. 
Muthukumar K 

Live Chat Icon For mobile
Up arrow icon