Partial Public Class StringFilterControl Inherits UserControl Implements IFilteringControl Private col As GridViewBoundColumnBase Private textFilter As FilterDescriptor Public Sub New() InitializeComponent() End Sub Public Shared ReadOnly IsActiveProperty = DependencyProperty.Register("IsActive", GetType(Boolean), GetType(StringFilterControl), New System.Windows.PropertyMetadata(False)) Public Property IsActive As Boolean Implements IFilteringControl.IsActive Get Return CBool(GetValue(IsActiveProperty)) End Get Set(value As Boolean) SetValue(IsActiveProperty, value) End Set End Property Public Shared ReadOnly CallbackProperty = DependencyProperty.Register("Callback", GetType(ICommand), GetType(StringFilterControl), New PropertyMetadata(Nothing)) Public Property Callback As ICommand Get Return GetValue(CallbackProperty) End Get Set(value As ICommand) SetValue(CallbackProperty, value) End Set End Property End Class End Namespace
<telerik:GridViewDataColumn.FilteringControl> <local:StringFilterControl Callback="{Binding FilterCommand}" /> </telerik:GridViewDataColumn.FilteringControl>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)