ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

[RadDataForm] inconsistent way of setting "List" editor value on iOS using Vue #1228

Open scebotari66 opened 5 years ago

scebotari66 commented 5 years ago

Tell us about the problem

I try to set an initial value for a List editor in my RadDataForm and there is an inconsistency in the way it works on iOS depending whether you have the fields meta bound to the component's data and when you specify them using markup. With object metadata the value gets set when you use the index value, whereas with markup metadata, the value gets set when you use the string value.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

  1. Start the playground application. There are two data forms defined there: one with object metadata, and other with markup metadata. And each form has two list editor fields: the first with a string value and the second with an index value. For all fields we try to set the value to Washington.
  2. On Android (first screenshot below), for every form, only the string case works, the index case does not set the initial value.
  3. On iOS (second screenshot below), in the object form, the index case works, but in the markup form - the string case works. This is inconsistent.

AndroidRadDataForm iOSRadDataForm

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

https://play.nativescript.org/?template=play-vue&id=O2ioMm&v=6