Hello, I am trying to populate sfComboBox with objects USING A CONVERTER. I am able to populate the data. when i open the combobox, it show correct values. but when i select a value from the combobox it shows the path of the object.
Please check with the sample and if the requirement differs from the sample, please explain your requirement with more information that would be helpful for us to give better solution in this.
Muneesh Kumar G.
HShassan salmanAugust 19, 2019 11:07 AM
Hi Muneesh, thank you for your reply and for the sample. Your sample produce the same problem as that i was described in my original thread. Could you please resolve the issue in your sample. When you select an item from the sfCombobox it show : SfComboBoxSample.DateTimeObject.
Thank you in advance.
RBRabhia Beham Kathar Mideenar Syncfusion Team August 20, 2019 02:35 AM
Greetings from Syncfusion.
We have modified the sample and for DisplayMemberPath is working fine without the Converter. Please have the sample from the below link,
Please check with the sample and if the issue is getting reproduced from your end, please modify the sample with the issue reproducing steps and also mention the platform details which will be helpful for us to analyse further and provide an appropriate solution.
Thanks, Rabhia Beham K.
HShassan salmanAugust 20, 2019 11:00 AM
Thank you very much for your reply. In my project i convert the datetime to a human readable phrase. I reproduced the error by changing the convert method in your sample. Now it show the same error as in my case. could you please let the combobox show the phrase after the user make a select. i attached the sample with the new modifications.
MKMuneesh Kumar G Syncfusion Team August 21, 2019 04:21 AM
We have analyzed the reported issue “Populating SfComboBox with business objects using Converter” with your sample. We would like to inform you that Converter method return value should be presented in the given DataSource collection. Converter should not return the other string value. The way of your conversion for datetime is wrong. So that you have faced this issue. Please use the Converter in provided sample.
Also, please let us know if you require any further assistance on this.
Muneesh Kumar G
HShassan salmanAugust 21, 2019 08:55 AM
Hi Muneesh, I have done that in the past using a pure universal windows project. The combobox in that project worked without any problem. So i think that in your xamarin syncfusion combobox control you have a problem with the property that is responsible to show data after selection.
Here is the combobox code in xaml used in that project.