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] Crash ios app if TKPropertyGroup have dynamic name as [name]="lbl_login_data" #1217

Open gbonline opened 5 years ago

gbonline commented 5 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

Please, provide the details below:

Tell us about the problem

On my app "angular based", I use the RadDataForm with fields grouped in some groups. I'm using the NS version 5, with ios platform 5.4.x.
Using dynamic name on TkPropertyGroup the ios app crash without exception! On android all goes well. I need the dynamic name because I need to show translated strings from the Nativescript-localize plugin as [name]="'lbl_name_translated' | L", but the crash happen when the name is dynamic as [name]="component_field" I would like to complete my app with configuration for NS 5! I've no time to upgrade the app to the new version 6!

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 application ..
  2. ...

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

(You can paste entire code snippets, link to playground demo or attach a runnable project)

tsonevn commented 5 years ago

Hi @gbonline, In your case, You can use displayName property while setting up the translated text inside the DataForm. For example:

<TKEntityProperty tkPropertyGroupProperties name="name" [displayName]="'new.line' | L">
                <TKPropertyEditor tkEntityPropertyEditor type="Text"></TKPropertyEditor>
  </TKEntityProperty>

This will work properly on both platforms(iOS and Android). Let me know if I am missing something or your case is different.

gbonline commented 5 years ago

thanks for answer, but as I wrote the problem is about the attribute name of tag TkPropertyGroup, not the TkEntityProperty. I know TkEntityProperty work well

tsonevn commented 5 years ago

Hi @gbonline, Can you send us the project or sample one, which can be used for reproducing the problem?

gbonline commented 5 years ago

Archivio-demo-raddataform,.zip

Hi, I attached a little project that works on android and fail on ios simulator

gbonline commented 5 years ago

Hi, do you have any news about the error?