RadListView - View is undefined in the ItemDeselected

Thread is closed for posting
4 posts, 0 answers
  1. Vamsi
    Vamsi avatar
    18 posts
    Member since:
    Apr 2017

    Posted 24 Jul 2017 Link to this post

    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

  2. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 25 Jul 2017 Link to this post

    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 itemDeselectedEvent
    Regarding that, we logged new issue here and you could keep track on it for further info.

    In the meantime, I could suggest binding backgroundColor 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.
  3. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 26 Jul 2017 Link to this post

    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.
  4. Vamsi
    Vamsi avatar
    18 posts
    Member since:
    Apr 2017

    Posted 26 Jul 2017 Link to this post

    Thank you guys.
Back to Top