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

ItemTemplate -> ImageButton event

0 Answers 53 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
void
Top achievements
Rank 1
void asked on 15 Sep 2010, 01:03 PM
Good morning everyone,
I have RadListBox with ItemTemplate like this:

<ItemTemplate>
<asp:ImageButton runat="server" ID="imgTrashIcon" ImageUrl="~/url" />
 <asp:Literal runat="server" ID="ltr" Text='<%# Eval("") %>' />
</ItemTemplate>

Can I delegate ImageButtons' OnClick event to the ListBoxItem i. e. it fires (and returns current data item) only when I click on the image, but not on the rest part of list box item.

Thanx a lot

No answers yet. Maybe you can help?

Tags
ListBox
Asked by
void
Top achievements
Rank 1
Share this question
or