Broken image

2 posts, 0 answers
  1. Jacob
    Jacob avatar
    21 posts
    Member since:
    Jan 2010

    Posted 12 Apr 2010 Link to this post

    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 ?
  2. Jacob
    Jacob avatar
    21 posts
    Member since:
    Jan 2010

    Posted 12 Apr 2010 Link to this post

    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
            } 
        }  

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top