Hi,
Can I catch the event of a WebImageViewer in my .cs file.
Exemple: I want the client side event ImageClick.
I know in VB we can double click on a button and we have a line like that:
protected void WebImageViewer1_ImageClick(object sender, System.EventArgs e)
But with your controls, is it possible and in C#??
thanks you
Gabriel Deschenes
Hello,
You can use the analogous of client side event ItemClick - SelectedIndexChanged. Please take a look at the sample below: <ig:WebImageViewer ID="ImageViewer" runat="server" Height="150px" Width="500px" onselectedindexchanged="ImageViewer_SelectedIndexChanged"> <Items> <ig:ImageItem ImageUrl="http://news.infragistics.com/default.aspx" /> <ig:ImageItem ImageUrl="http://news.infragistics.com/Themes/infragistics/style/images/pods/Media.png" /> <ig:ImageItem ImageUrl="http://news.infragistics.com/default.aspx" /> <ig:ImageItem ImageUrl="http://news.infragistics.com/Themes/infragistics/style/images/pods/Media.png" /> </Items> <ClientEvents ImageClick="Fire" /> </ig:WebImageViewer>
Hope this helps.
Ivan,
The imageclick event does not fire in FireFox. I am using the exact code posted above.
Any sugestions?
Thanks