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

Broken image

1 Answer 101 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 13 Apr 2010, 01:00 AM
I am using GridBinaryImageColumn in RadGrid.
In IE8 I get broken image sign if there is no data for this particular row.
Is there any built-in solution to avoid this ?

1 Answer, 1 is accepted

Sort by
0
Jacob
Top achievements
Rank 1
answered on 13 Apr 2010, 01:11 AM
I was able to achieve it by this :

protected void grdGuests_ItemDataBound(object sender, GridItemEventArgs e) 
    if (e.Item is GridDataItem) 
    { 
        GridDataItem dataItem = (GridDataItem)e.Item; 
        if (((RadBinaryImage)dataItem["UserPicture"].Controls[0]).DataValue == null
        { 
            ((RadBinaryImage) dataItem["UserPicture"].Controls[0]).Visible = false
        } 
    }  

Tags
BinaryImage
Asked by
Jacob
Top achievements
Rank 1
Answers by
Jacob
Top achievements
Rank 1
Share this question
or