Hi,
we have our providerValues defined as key value array which shows fine, when we are editing our form, our source is containing selected value for our Picker, but on IOS this picker list is not preselected, on Android this is working fine.
We made simple playground that mimics our environment with minimal example, but playground is still not using the latest nativescript-ui-dataform, it keeps using the old pro version where key values are not working for some reason.
https://play.nativescript.org/?template=play-ng&id=XF7Yv1&v=31
Thanks
I got response here and the issue it seems to be with the order of loading valuesProvider and source, we got our values hardcoded in component, but our source was coming from local sqlite db, and the call to service was made from ngOnInit, we moved our service call to constructor, and that made source object available at time and picker was showing preselected value fine..
Most helpful comment
I got response here and the issue it seems to be with the order of loading valuesProvider and source, we got our values hardcoded in component, but our source was coming from local sqlite db, and the call to service was made from ngOnInit, we moved our service call to constructor, and that made source object available at time and picker was showing preselected value fine..