Version

ColumnFilterAdded Property

Event fired after one or more column filters are added to the column filters collection.
Syntax
'Declaration
 
Public Property ColumnFilterAdded As String
public string ColumnFilterAdded {get; set;}
Example
Me.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.ColumnFilterAdded = "WDG1_ColumnFilterAdded"
this.WebDataGrid1.Behaviors.Filtering.FilteringClientEvents.ColumnFilterAdded = "WDG1_ColumnFilterAdded";
// The client event ColumnFilterAdded takes two parameters sender and e
// sender  is the object which is raising the event
// e is the ColumnFilterAddedArgs

    function WDG1_ColumnFilterAdded(sender, e) {

        //Gets the column filter object that need sto be added
        var filter = e.get_columnFilter();

        //Gets the key of the column that the column filter is tied to
        var columnKey = filter.get_columnKey();

        //Rule and value based filtering condition that will apply to the ControlDataField which the ColumnFilter is tied to.
        var condition = filter.get_condition();

        //Gets the rule applied on the filter
        var rule = condition.get_rule();

        window.status = "Filtering  is done on the column '" + columnKey + "'";

    }
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