このイベントはキャンセルできます。
Me.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.FilterDropdownHiding = "WDG1_FilterDropdownHiding"
this.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.FilterDropdownHiding = "WDG1_FilterDropdownHiding";
// The client event 'FilterDropdownHiding' takes two parameters sender and e // sender is the object which is raising the event // e is the CancelDropDownEventArgs function WDG1_FilterDropdownHiding(sender, e) { if (!confirm("Are you sure you want to hide Filter dropdown?")) //Cancels the 'FilterDropdownHiding' event e.set_cancel(true); }