バージョン

ImageItemRemoved プロパティ

クライアントで削除されるすべての項目でトリガーされる AJAX コールバックの後に発生するイベント。
シンタックス
'宣言
 
Public Property ImageItemRemoved As String
public string ImageItemRemoved {get; set;}
使用例
// 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";
参照