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
105
WebImangeVierwe - Serverside events
posted

Hi

How do i setup a serverside event handler to capture ImageSelected event ?

  • 7694
    posted

    Normal 0 21 false false false BG X-NONE X-NONE MicrosoftInternetExplorer4

    Hello,

    You can handle server side event by two  ways.

    The first way is to  override the event OnInit. For example you  can take a look  at the sample code below:

    protected override void OnInit(EventArgs e)

        {

     

    //here you  subsribe to SelectedIndexChanged event

            WebImageViewer1.SelectedIndexChanged +=

                new Infragistics.Web.UI.ListControls.ImageItemEventHandler(WebImageViewer1_SelectedIndexChanged);

        }

     

        void WebImageViewer1_SelectedIndexChanged(object sender, Infragistics.Web.UI.ListControls.ImageItemEventArgs e)

        {

            throw new NotImplementedException();

        }

     

    The second way  is subscribe for event automatically with  visual  studio. You  just have to  double click on the event then event will be generate automatically. Please take a look  at the attached picture below.

    Hope this helps.

    Thanks.

    Ivan Baev