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

Image from URL not showing initially in radlistview

2 Answers 144 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.
Anurag
Top achievements
Rank 1
Anurag asked on 07 Sep 2017, 08:36 AM

Hi 

I am using the nativescript radlistview for a nativescript angular project and am facing issues in displaying some images correctly.

To populate the listview I enter the letter 'a' in a search bar and click on the search icon. This triggers a search through the itemservice. In my component I am subscribing to the results returned by the service. 

I am experiencing 2 problems:

Problem 1.

When I run a search most of the content displays correctly but the  couple of images that are part of the first 2 objects returned  "NEVER" show correctly at the beginning.

Problem 2.

Sometimes if I scroll down the radlistview and then return to the top these images show up at that time, but this does not always happen. sometimes on scrolling up and down images that were earlier visible disappear and are not visible even if i stop scrolling.

Also in my console I see an error as follows

ERROR Error: Uncaught (in promise): Error: Response content may not be converted to an Image
    file:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:124:61 [<root>]

 

I have created a sample project to show this behavior. I am attaching to this request for help. Please let me know what I need to do differently. Thank you.

Link to project on github.

 

 

2 Answers, 1 is accepted

Sort by
0
Anurag
Top achievements
Rank 1
answered on 07 Sep 2017, 08:51 AM
Please use this github repo instead of the one posted in the initial request.
0
Nick Iliev
Telerik team
answered on 08 Sep 2017, 08:52 AM
Hello Anurag,

Thank you for the provided project. I have investigated the issue and it seems that it is related to getting an incorrect response when making GET requests on iOS with specific headers. Our development team is investigating the issue which is logged here. Plese stay in touch and keep track on the logged issue for possible workarounds and upcoming fixes (all related information will be posted in the linked issue).

As a side note, I've noticed that the API sometimes returns non-existing links which might also cause undesired behavior (e.g. https://www.googleapis.com/download/storage/v1/b/quest-a4d78.appspot.com/o/QImages%2FC8AE1C736FD54572AFDDDBDF31A5E0EB.png?generation=1498201819132848&alt=media) points to a non-existing file.

Once again, we are sorry for any inconvenience caused by this issue - our development team will investigate and post related information as soon as we have more detailed information.
As appreciation for the found bug, I am awarding your Telerik points

Regards,
Nikolay Iliev
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.
Tags
ListView
Asked by
Anurag
Top achievements
Rank 1
Answers by
Anurag
Top achievements
Rank 1
Nick Iliev
Telerik team
Share this question
or