Hi I have a radtooltip with an image inside declared as follows in .aspx file
what I want to do is change the image based on the index of a radcombobox.
I've try something like this
But no success. is this the correct way to show an image in a tooltip?
If yes, how can I change the image on rancombobox.selectedindexchange?
<
telerik:RadToolTip
ID
=
"RadToolTip1"
runat
=
"server"
TargetControlID
=
"help"
IsClientID
=
"true"
Animation
=
"Slide"
>
<
asp:Image
ID
=
"Image2"
runat
=
"server"
/>
</
telerik:RadToolTip
>
I've try something like this
protected void RadComboBox6_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
case 1:
Image2.ImageUrl = "/App_Themes/img/Mexico-Credencial-del-elector-reverso.jpg";
break;
break;
case 2:
Image2.ImageUrl = "/App_Themes/img/AGUILA-PJF.JPG";
break;
}
}
But no success. is this the correct way to show an image in a tooltip?
If yes, how can I change the image on rancombobox.selectedindexchange?