Hi
How do i setup a serverside event handler to capture ImageSelected event ?
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