How to Bind ObservableCollection<KeyValuePair<string, string>> in SfCombobox Source and DisplayMemberPath is Value ?

private ObservableCollection> workSpaceArea;


public ObservableCollection> WorkSpaceArea

{

get { return workSpaceArea; }

set { workSpaceArea = value; OnPropertyChanged("WorkSpaceArea"); }

}


ctor(){

WorkSpaceArea = new ObservableCollection>();

}


XAML:

HeightRequest = "40"

DataSource="{Binding WorkSpaceArea}"

DisplayMemberPath="Value"/>


I have add data on WorkSpaceArea and Bind it to SfCombobox DataSource. it's not showing even I set tried to set the Display path.



1 Reply

SS Suganya Sethuraman Syncfusion Team October 28, 2021 06:20 AM UTC

Hi Bharath,

Greetings from Syncfusion.

We have analyzed your query and currently, we don't have the “Dictionary collection support for SfComboBox”. Please use normal collection to DataSource of SfComboBox. Hence, we have logged the feature request for this. You can track the status of the feature from below link,

Feedback: https://www.syncfusion.com/feedback/9318

Please cast your vote to make it count. We will prioritize the features every release based on the demands, and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available for any of our upcoming releases.

If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon