Version

ItemMouseDown Property

Syntax
'Declaration
 
Public Property ItemMouseDown As String
public string ItemMouseDown {get; set;}
Example
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);  
      
  }
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