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

[Solved] Not responding to click on image

1 Answer 83 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 04 Jun 2009, 05:49 AM
Hi,

We have an application with a number of RadComboBoxes, in which we have bound images, and these have been working fine.

We have just upgraded from Q1 2008 to Q1 2009 versions (got a bit left behind as we only just realised we needed to subscribe to continue getting bug fixes).

Snce upgrading, the users can o longer select an item by clicking on the image. As the image is the most obvious thing to click on, I can see that this would become an issue.  Is this a bug or a feature? Is there a workaround?

I have tried setting the OnClick event of the image, but then I guess that code would have to figure out which item has been clicked on, and select the item in th combo box, whichseems like a long way around the houses to get back to the way things were.

An example of a typical combo box on one of our pages is:

 

<Telerik:RadAjaxPanel ID="rapBadgeColour" runat="server" EnableAJAX="true" >

 

 

<Telerik:RadComboBox ID="rcbBadgeColour" runat="server" DataTextField="Description" DataValueField="BadgeColour" Skin="Vista" MarkFirstMatch="True" Width="250px" AutoPostBack="true" HighlightTemplatedItems="True" OnSelectedIndexChanged="DoElementChanged">

 

 

<ItemTemplate>

 

 

<table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 10px; font-size: 11px;" width="98%">

 

 

<tr>

 

 

<td>

 

 

<asp:ImageButton ID="imgImage" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "img") %>' AlternateText='<%# DataBinder.Eval(Container.DataItem, "Description") %>'  />

 

 

</td>

 

 

<td>

 

<%

# DataBinder.Eval(Container.DataItem, "Description") %>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</Telerik:RadComboBox>

 

 

</Telerik:RadAjaxPanel>

Thanks

Rob

 

1 Answer, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 04 Jun 2009, 06:08 AM
It's OK,

I foun the answer. II noticed as I was pasting the sample code in that we had for some reason used an image button rather than an image. No idea why, lost in the mists of time. Anyway, changing them to images has fixed the problem.

Cheers

Rob
Tags
ComboBox
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Share this question
or