Making BinaryImage image button

5 posts, 0 answers
  1. Marty
    Marty avatar
    22 posts
    Member since:
    Feb 2008

    Posted 23 Nov 2009 Link to this post

    Hi,  I have a really basic need that is so basic that maybe no one has posted before.

    I'd like to have a BinaryImage act like a button and provide a OnClick and CommandArgument like an ImageButton does.

    Please show me how I can do this...  Can I wrap this control in another control in the RagGrid or ListView?

    I have an ImageStream and want to use the Rad BinaryImage to render but I want the properties of a ImageButton.

    thanks
    Marty
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 24 Nov 2009 Link to this post

    Hello Marty,

    To achieve your goal you may consider wrapping the RadBinaryImage instance inside asp LinkButton without Text property value and with CommandArgument set in conjunction with your logic. See how this is done for the second RadListView control on the following online demo:

    http://demos.telerik.com/aspnet-ajax/listview/examples/firstlook/defaultcs.aspx

    Best regards,
    Sebastian
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marty
    Marty avatar
    22 posts
    Member since:
    Feb 2008

    Posted 24 Nov 2009 Link to this post

    Thank you so much!  I was thinking about LinkButton but I was not sure that was the best approach.  I did not see that ListView example either - thanks!  You guys are great at responding to forum requests and have great examples!
    Marty
  5. Philip
    Philip avatar
    70 posts
    Member since:
    Apr 2008

    Posted 10 May 2010 Link to this post

    Can the link above be fixed? It is a dead link.
  6. BaiH
    BaiH avatar
    83 posts
    Member since:
    Aug 2008

    Posted 11 May 2010 Link to this post

    It's quite a live for me.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017