This is a migrated thread and some comments may be shown as answers.

RadListView - View is undefined in the ItemDeselected

3 Answers 52 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vamsi
Top achievements
Rank 1
Vamsi asked on 24 Jul 2017, 08:07 PM

Hi

I'm facing an error while trying to set background color of an deselected item.  Below code throwing an exception "Cannot set property 'backgroundColor' of undefined"

args.view.backgroundColor = new Color("#b3ecff");

Nativescript Version: 3.1.1

UI for NativeScript 3.0.0.292

 

Thank you

Vamsi

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 25 Jul 2017, 08:34 AM
Hi Vamsi,

thank you for reporting this issue.

we reviewed it and unfortunately, we have to confirm that this is a real issue and the view property will return an undefined value while accessing it inside the . 
Regarding that, we logged new issue here and you could keep track on it for further info.

In the meantime, I could suggest binding  property and change its value depending on the selection state. An example could be found here.


Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Deyan
Telerik team
answered on 26 Jul 2017, 09:02 AM
Hi,

This was a limitation in terms of the View not being exposed by the Event Args object.

We have addressed this in our internal codebase and the fix will make it into our next official release.

Regards,
Deyan
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Vamsi
Top achievements
Rank 1
answered on 26 Jul 2017, 09:04 AM
Thank you guys.
Tags
ListView
Asked by
Vamsi
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Deyan
Telerik team
Vamsi
Top achievements
Rank 1
Share this question
or