バージョン

ItemMouseDown プロパティ

シンタックス
'宣言
 
Public Property ItemMouseDown As String
public string ItemMouseDown {get; set;}
使用例
WebDropDown1.ClientEvents.ItemMouseDown = "WebDropDown_ItemMouseDown"
WebDropDown1.ClientEvents.ItemMouseDown = "WebDropDown_ItemMouseDown";
// The client event 'ItemMouseDown' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the DropDownControlEventArgs
  
  function WebDropDown_ItemMouseDown(sender, e) {
    //Gets the reference of the WebDropDown
      var dropdown = $find("WebDropDown1");
      
     //Gets the drop-down item that is clicked
      var item = e.get_value();

      //Gets the drop-down items collection
      var items  = dropdown.get_items();

      //Removes the item from the collection
      items.remove(item);  
      
  }
参照