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

Image is not displaying in radgrid

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bhavana gahlot
Top achievements
Rank 1
bhavana gahlot asked on 10 Apr 2010, 12:32 PM
Hi ,

I have added a  image column in Rad Grid.
aspx code is below.

<telerik:GridImageColumn DataType="System.String" dataimageurlfields="PHOTO_PATH" display="true"
                                                          
                     AlternateText="Customer image" DataAlternateTextField="ContactName" ImageAlign="Middle"  
                      ImageHeight="110px" ImageWidth="90px"
                      HeaderText="Image Column" />

Photo_path field  has value" \\192.168.0.08\photos\images\MUM4\219937W.JPG" . Image is not diplaying.

Please give me advice.

Thanks.



1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 12 Apr 2010, 11:40 AM
Hello bhavana,

If your images reside in the root folder of your web site and the PHOTO_PATH values from the source field match the names of the relevant images, they should be displayed in the GridImageColumn.

I suggest you right-click the images that are rendered in the browser and verify whether their image url value is properly defined. I also think that based on your description the DataImageUrlFormatString value should be defined as follows:

DataImageUrlFormatString="{0}"


Regards,
Sebastian
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
bhavana gahlot
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or