This event is cancelable.
Me.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.DataFiltering = "WDG1_DataFiltering"
this.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.DataFiltering = "WDG1_DataFiltering";
// The client event DataFiltering takes two parameters sender and e // sender is the object which is raising the event // e is the CancelApplyFiltersEventArgs function WDG1_DataFiltering(sender, e) { //Gets the column filters array which will be used to filter the data in the grid var columnFilters = e.get_columnFilters(); //Gets the column key var key = columnFilters[0].get_columnKey(); if (!confirm("Are you sure you want to continue with filtering the column '" + key + "'?")) //Cancels the 'DataFiltering' event e.set_cancel(true); }
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