<telerik:RadRotator ID="RadRotator_Slider" PauseOnMouseOver="false" runat="server" Skin="cms" EnableEmbeddedSkins="false">
<ItemTemplate>
<asp:Image ID="Image" runat="server" style="cursor:pointer" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Image") %>' AlternateText="" />
</ItemTemplate>
</telerik:RadRotator>
When Item is clicked, the following event is called and a redirection to
specified URL is executed:
Protected Sub RadRotator_Slider_ItemClick(o As Object, e As RadRotatorEventArgs) Handles RadRotator_Slider.ItemClick
Dim dt As DataTable = Session("DataSource")
Dim frame As RadRotatorItem = e.Item
Dim index As Integer = frame.Index
Dim Link As String = dt.Rows(index).Item("LinkAdress")
If Link <> "" Then Response.Redirect(Link)
End Sub
For some specific items, there is no URL. For those items, I would like to disable the
itemclick event and if possible, I would also like to change the cursor style when hovering
over the image back to normal. As a result, no postback action should be executed on items without url.
Is that possible?