- Home
- Forum
- Xamarin.Forms
- Multi-column SfPicker shows the .NET object name instead of the item
Multi-column SfPicker shows the .NET object name instead of the item
Hi,
I tried to both run the multi-column example available in the Syncfusion documentation and to create an example myself, but the SfPicker does not show the items rather it shows a number of "System.Collections.ObjectModel.ObservableCollection" items, like if ToString() was invoked on the object name.
Also, for example in the official sample, instead of displaying two columns with the list of supplied items in each column, it just show two items with the .NET name which I suppose to represent the two properties the data model exposes.
For the sake of completeness, I'm using VS 2017 and the version of the SfPicker package is 15.4.0.17. I only tried on iOS (this is my current requirement) and the SfPickerRenderer has been initialized.
This is also what I get if I simply open and run the official sample with no edits.
Any hints on this? thanks in advance
Also, for example in the official sample, instead of displaying two columns with the list of supplied items in each column, it just show two items with the .NET name which I suppose to represent the two properties the data model exposes.
For the sake of completeness, I'm using VS 2017 and the version of the SfPicker package is 15.4.0.17. I only tried on iOS (this is my current requirement) and the SfPickerRenderer has been initialized.
This is also what I get if I simply open and run the official sample with no edits.
Any hints on this? thanks in advance
Alessandro
SIGN IN To post a reply.
5 Replies
RK
Rathana Kumar Sekar
Syncfusion Team
December 19, 2017 10:35 AM UTC
Hi Alessandro Del Sole,
Thanks for contacting Syncfusion Support.
We have checked the reported issue "Multi-column SfPicker shows the .NET object name instead of the item" from our side and we were unable to reproduce the reported issue and attached the SfPicker sample using Multi Column for your reference. Please find the sample from the below link.
So, could you please provided the modified sample which replicates the reported issue. It will help us to provide appropriate solution on this.
Regards,
Rathanakumar S.
NT
Norbert Tamas Peter
March 28, 2018 06:31 AM UTC
Hi.I have the same issue.using VS 2015, I get shown the collection of names instead of the contained elements(like in the attached screenshot).SfPicker package 16.1.0.26,VS 2015.after I implemented according to the tutorial the custom picker I had this problem,then downlaoded your sample and that has the same behaviour.
Attachment: Screenshot_20180328092149_7cbc64ca.rar
Do you now why this happens?
Thanks,Norbert
Attachment: Screenshot_20180328092149_7cbc64ca.rar
VA
Vinnalan Aravazhi
Syncfusion Team
March 29, 2018 10:55 AM UTC
Hi Norbert,
Thanks for the update.
We have checked the reported issue from our side and we are unable to reproduce the reported issue from our side and we have attached the custom picker sample in which we have checked the reported issue from our side. Please find the sample from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135110/ze/PickerSample-391350359
Thanks for the update.
We have checked the reported issue from our side and we are unable to reproduce the reported issue from our side and we have attached the custom picker sample in which we have checked the reported issue from our side. Please find the sample from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135110/ze/PickerSample-391350359
So, could you please provide the modified sample which replicates the reported issue. It will help us to provide appropriate solution on this.
Regards,
Vinnalan K A.
Hi Norbert,
Thanks for the update.
We have checked the reported issue from our side and we are unable to reproduce the reported issue from our side and we have attached the custom picker sample in which we have checked the reported issue from our side. Please find the sample from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135110/ze/PickerSample-391350359
So, could you please provide the modified sample which replicates the reported issue. It will help us to provide appropriate solution on this.
Regards,
Vinnalan K A.
Hello.Thanks for your response.I am talking about multi-column pickers,the ones from here => https://help.syncfusion.com/xamarin/sfpicker/populatingitems .
I modified the sample you sent to me,and will upload it here.When I run this sample it results in the same screenshot I sent you in the first question(I don't see 3 columns with the correct values ,but instead I see a list with 3 ObservableCollection class names).
Thanks,Norbert
Attachment: PickerSample_88ac30ea.zip
RK
Rathana Kumar Sekar
Syncfusion Team
March 30, 2018 06:14 AM UTC
Hi Norbert,
Thanks for contacting Syncfusion Support.
We have checked the reported issue in attached sample and find due to sample level issue reported issue gets occurred. Now we have modified your sample column collection type to ObservableCollection<object> for fix the reported issue. Please find the sample from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135110/ze/PickerSample-376527008
Thanks for contacting Syncfusion Support.
We have checked the reported issue in attached sample and find due to sample level issue reported issue gets occurred. Now we have modified your sample column collection type to ObservableCollection<object> for fix the reported issue. Please find the sample from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/135110/ze/PickerSample-376527008
Please let us know if you have any concern on this.
Regards,
Rathanakumar S.
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
-
AD Alessandro Del Sole
- Dec 18, 2017 02:21 PM UTC
- Mar 30, 2018 06:14 AM UTC