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

Making BinaryImage image button

4 Answers 96 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Marty
Top achievements
Rank 1
Marty asked on 24 Nov 2009, 04:24 AM
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

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Nov 2009, 07:24 AM
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.
0
Marty
Top achievements
Rank 1
answered on 24 Nov 2009, 07:27 PM
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
0
Philip
Top achievements
Rank 1
answered on 10 May 2010, 09:11 PM
Can the link above be fixed? It is a dead link.
0
BaiH
Top achievements
Rank 1
answered on 11 May 2010, 07:26 AM
It's quite a live for me.
Tags
BinaryImage
Asked by
Marty
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Marty
Top achievements
Rank 1
Philip
Top achievements
Rank 1
BaiH
Top achievements
Rank 1
Share this question
or