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

SVG load issue

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 12 Aug 2019, 01:47 PM

Hi,

 

I am setting SVG imageUrl using a recursion call for all the items on PanelBar for Parent as well as Children. When I refresh the page, the SVGs don't load. When I hover over it, they loads ( Only SVG issue, Item labels load correctly ). 

Please note that I don't bind individual items on PanelBar using PanelBarItems. I read the data from json and set them to PanelBar in one go using 

 

children={panelBarItems}

where panelBarItems are read from json object. Json object does not have imageUrl so I map that object to have the imageUrl. How to resolve this issue ?

 

Regards,

Vinod 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Aug 2019, 10:18 AM
Hello, Vinod,

Thank you for the details.

Based on the provided information, this sounds as a timing issue as the "imageUrl" are not available initially.

I can suggest the following approach.

Bind the PanelBar to a value in the state, which will be empty initially, then once the "imageUrl" are set, set the array to the state variable.

If this does not resolve the issue, please share a runnable example, so we can locally inspect this case and make more to the point suggestion.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Vinod
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or