Radbinaryimage as buttton in grid view

2 posts, 1 answers
  1. shyam k
    shyam k avatar
    9 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

        I have a radbinaryimage in grid view . When clicked on the image i need to redirect them to another page where it shows the image based on the query string passed.  Can any one suggest me how to do that....  I tried to put the radbinaryimage inside the asp link button. it worked for list view not in grid view.

    Its URGENT

  2. Answer
    Radoslav avatar
    1564 posts

    Posted 02 Feb 2010 Link to this post

    Hi Shyam,

    You could try to add a TemplateField in your GridView. There you could add RadBinaryImage enclosed with an asp:LinkButton with PostBackUrl property pointing to another page and passing the query sting parameter:

          <asp:LinkButton runat="server" ID="linkButton" CommandName="selectImage" PostBackUrl='<%# "~/WebForm1.aspx?id=" + Eval("ID") %>'>
                <telerik:RadBinaryImage ResizeMode="None" Style="width: 60px; height: 60px;" ID="radBinaryImage" runat="server" DataValue='<%# Eval("Picture") %>' />

    Additionally I am sending you a simple example which illustrates how to achieve the desired scenario.

    I hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top