Load data into a picker control only when it opens

I have to maintain some complex states of an object. Each state should be represented by a picker control.

An object has multiple states and the list of states is large and must be retrieved from a DB. Also some states share the same list. 
Sharing the list isn't a problem.

But I want to show the current state, without loading the complete data list into the picker. 
Is there any event that is called when the picker is opened?

My idea is to populate the picker with the current states selection. If the user taps on the picker, I will load the list of all available states...

3 Replies

VA Vinnalan Aravazhi Syncfusion Team February 13, 2018 09:59 AM UTC

Hi Martin,

Thanks for contacting Syncfusion support.

We have checked your requirement "Load data into a picker control only when it opens" from our side.

We have created a sample based on your requirement in this sample ItemsSource is updated using Opened event. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/135883/ze/PickerSample-796020751 

Please let us know if you have any other queries.

Regards,
Vinnalan K A. 



MR MRi February 15, 2018 09:47 AM UTC

Thanks for the sample. 

Sadly this isn't a Picker Control any more...
But I have an idea about what you mean.


VA Vinnalan Aravazhi Syncfusion Team February 16, 2018 10:33 AM UTC

Hi Martin,

We are glad to know that you have achieved your requirement. Please let us know if you have any other queries.

Regards,
Vinnalan K A.


Loader.
Up arrow icon