Display image in Telerik RadGridView Column

1 posts, 0 answers
  1. Sats
    Sats avatar
    6 posts
    Member since:
    May 2012

    Posted 04 Jun 2012 Link to this post

    Hello All,

    I am using telerik RadGridView control.
    In that I have created the first column dynamically and inserted it at Index zero (0).





    bindC = new Binding("Link");




    new GridViewDataColumn { Header = "", HeaderCellStyle = Resources["GridViewHeaderCellStyle1"] as Style, CellTemplate = GetDataTemplate("LinkButton", "Link"), DataMemberBinding = bindC });

    I have custom web part in sharepoint and in that I have used this telerik RadGridView control.
    What I want is I have configured web part with Image library, document library or normal sharepoint list.
    So what I really need is if I have configured a document library and suppose in that there are Images as well, based on the image displayed in the RadGridView, the first columns should display the thumbnail of the image.
    If the library/list configured contains normal data (means no image), then it should display a default icon/image.

    Means based on the the configuration I wnat to display Image/icon based on the list type used.

    Also, the Image should be clickable. I want to perform further action on click event of the image/icon.

    In the above eg. that I created dynamic column, I am seeing the default Image even if the library configured for web part contains images normal  documents.

    If I change to GridViewImageColumn, then some items shows images and others not

    Please any ideas on this.
    Help is aprreciated.



Back to Top