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

DataForm binding to PropertyGroup displayName property is throwing #399

Open HannesT117 opened 6 years ago

HannesT117 commented 6 years ago

Did you verify this is a real problem by searching Stack Overflow?

Yes

Tell us about the problem

At the moment, it is possible to use converters / pipes for the displayed name of TKEntityProperties, e.g. with Angular & nativescript-i18n:

<TKEntityProperty name="name" displayName="{{'name' | L}}">

Same thing doesn't work for the TKPropertyGroup. Entering something like the following as name property just gives me a blank screen:

<TKPropertyGroup name="{{'address' | L}}">

For me, this would be a really nice thing to have!

Which platform(s) does your issue occur on?

iOS

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

nicHoch commented 6 years ago

It is not only pipes there seems to be no binding possible at all to

<TKPropertyGroup name="{{ label }}">

So only a hard coded label is possible at the moment, but translations require a proper binding.

NickIliev commented 6 years ago

@nicHoch confirming this one as not implemented and as binding to the name property is actually crashing the application marking it as a bug. Reproducible in both JS/TS and Angular projects.

Steps to reproduce:

Result: application will crash or show blank screen

Throwing with:

Cannot read property 'toString' of null, undefined

reproducible with plugin version 3.2.0 and 3.3.0-2017-12-7-3"

noumaans commented 6 years ago

Here's a link to playground showing crash on iOS, works fine on Android: https://play.nativescript.org/?template=play-ng&id=HmW2JH&v=6