Version

ImageItemRemoved Property

Event fired after the AJAX callback that is triggered for every item removed on the client.
Syntax
'Declaration
 
Public Property ImageItemRemoved As String
public string ImageItemRemoved {get; set;}
Example
// The following function is designed to remove an image 
// from the WebImageViewer on the client side at a specific index.
// This will cause the WebImageViewer ImageItemRemoved client
// side event to fire.
function removeImage() {
   var iv = $find("WebImageViewer1");
   var items = iv.get_items();
   var item = items.getItem(2);
   items.remove(item);
}

// The client side event ImageItemRemoved takes two parameters, sender and e.
// Sender is the object which is raising the event
// e is the ImageViewerEventArgs
function WebImageViewer_ImageItemRemoved(sender, e) {
   var imageviewer = $find("WebImageViewer1");

   // Returns the ImageItem associated with the event
   var imageItem = e.getImageItem();
            
   // Get the index of the removed image
   var imageIndex = imageItem.get_index();
            
   window.status = "Image located at index " + imageIndex + " has been removed from the Image Viewer";
}
Me.WebImageViewer1.ClientEvents.ImageItemRemoved = "WebImageViewer_ImageItemRemoved"
this.WebImageViewer1.ClientEvents.ImageItemRemoved = "WebImageViewer_ImageItemRemoved";
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also