Displaying selected item with Custom SFPicker

Hi, I just started playing with creating a 2 column SFPicker for a prototype I was playing with, I've been able to get it to work pretty with 2 issues.  The first is a minor one which is if I set the ObservableCollection with the values for each column with a generic type of string (like in the example), then the picker only shows a single column and the collections are displayed as ToString  If I change the generic type of the ObservableCollection to a generic type of Object, then the multi column displays correctly.  The second issue and the one I can't get around is that after a value is picked in each colukn of the picker, I have to take those valuez and put them into a control like a label to display the values, is there a way to keep the closed picker itself from taking any real estate since it doesn't display the selected value?  For example, the closed sfpicker appears to still influence the layout of other items even when it's closed.  This would be fine if it could display the user selection, but it doesn't.  Is that by design?  If there a way to have it show the values from the selected columns so I wouldn't have to use a separate label?  Hopefully that makes sense.

1 Reply

VA Vinnalan Aravazhi Syncfusion Team November 10, 2017 01:21 PM UTC

Hi Ryan Moquin,

Thanks for the contacting Syncfusion Support.

Query 1:

We would like to let you know that the ObservableCollection of ObservableCollection<object> must be used to create Multi Column, this cannot be obtained through ObservableCollection of string which can be used for Single Column.

Query 2:

We have checked the reported isssue "Displaying selected item with Custom SFPicker" from our side and we were unable to reproduce the reported issue from our side and we have attached the sample, which we have checked the reported issue from our side. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/133667/ze/F133667-308718752 

So, could you please provide below mentioned details,

1) Modified sample which replicates the reported issue.

2) Which iOS version and device model reported issue gets occur.

It will help us to provide appropriate solution on this.

Regards,
Vinnalan K A. 


Loader.
Up arrow icon