SfPicker 3 column example

Hello,

Has anyone got an example of using the SfPicker with 3 columns?

For example, Country / State / Post code.

I've modified the example accordingly and the picker initialises correctly; with 3 columns, the  headers and default selection  but it crashes on picker_SelectionChanged at the line i've highlighted.

if (picker.ItemsSource != null && e.NewValue is IList && (e.NewValue as IList).Count > 0 && CurrentItem != (e.NewValue as IList)[0].ToString())
            {
                //Updated the second column collection based on first column selected value.
                (picker.ItemsSource as ObservableCollection<object>).RemoveAt(0);
                (picker.ItemsSource as ObservableCollection<object>).Add(GetCountry((e.NewValue as IList)[0].ToString()));
            }

Can anyone point me in the right direction?

Best regards,
Iain

3 Replies

VA Vinnalan Aravazhi Syncfusion Team October 27, 2017 12:51 PM UTC

Hi Iain Stirzaker ,
 
Thanks for contacting Syncfusion Support.
 
We have prepared SfPicker multi column sample based on your requirement. We have checked the reported crash issue in the sample. But we were unable to reproduce the reported issue from our side. Please download the sample from the below link.
 
 
Please look at the sample. If the issue still persist, could you please provide more information like reproduce steps about your issue. It would helpful for us to resolve your problem earlier.
 
Regards,
Vinnalan K A.



IS Iain Stirzaker October 30, 2017 06:21 PM UTC

Thanks for 3-column sample, much appreciated.

The bug I was experiencing was one I'd introduced modifying (incorrectly) the existing 2-column sample.

Cheers

Iain 



VA Vinnalan Aravazhi Syncfusion Team October 31, 2017 11:22 AM UTC

Hi Iain Stirzaker, 

 
Thanks for the update. 

 
We are glad that your requirement has been achieved.
 
Please let us know if you have any other query. 

 
Regards, 
Vinnalan K A. 


Loader.
Up arrow icon