Approved
Last Updated: 17 Jul 2017 14:57 by ADMIN
ADMIN
Vessy
Created on: 17 Jul 2017 12:02
Category: Diagram
Type: Bug Report
0
Images with the same path are not rendered in the shapes HTML content
When more than one shapes have HTML content containing image with the same path, only the image inside the first shape is rendered:
https://www.screencast.com/t/mYJVfSOlP


Code to reproduce:
        <telerik:RadDiagram runat="server" ID="RadDiagram1">
            <LayoutSettings Enabled="true" Type="Tree" Subtype="Right" />
            <ShapesCollection>
                <telerik:DiagramShape Id="s1" >
                    <ContentSettings Html="<div>Shape 1</div><img src='sampleImage.png' />" />
                </telerik:DiagramShape>
                 <telerik:DiagramShape Id="s2" >
                    <ContentSettings Html="<div>Shape 2</div><img src='sampleImage.png' />" />
                </telerik:DiagramShape>
            </ShapesCollection>
        </telerik:RadDiagram>
1 comment
ADMIN
Peter Milchev
Posted on: 17 Jul 2017 14:57
A possible workaround is adding query parameters to the src URL of the image: 

<telerik:DiagramShape Id="s1" >
    <ContentSettings Html="<div>Shape 1</div><img src='sampleImage.png?somerandomparameter=Shape+1' />" />
</telerik:DiagramShape>
<telerik:DiagramShape Id="s2" >
    <ContentSettings Html="<div>Shape 2</div><img src='sampleImage.png?somerandomparameter=Shape+2' />" />
</telerik:DiagramShape>