Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
804
Client event in .cs file
posted

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

Parents
  • 7694
    Suggested Answer
    posted

    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.

Reply Children
No Data