Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Unbound column filtering question
posted

Hello, I've read through most of the posts related to filtering of unbound columns but I am still having an issue with unbound column filtering (xamGrid version 11.1.20111.2115).  The unbund column is setup in xaml. The filter editor template includes a text box for entering the filter value:

 

 

 

 

 

 

 

<ig:UnboundColumn Key="U_Name" HeaderText="Unbound Name" IsFilterable="True"
EditorValueConverter
="{StaticResource AreaGridValueConverter}"
EditorValueConverterParameter
="Name" FilterItemTemplate="{StaticResource
UnboundFilterTemplate
}" FilterEditorTemplate="{StaticResource
UnboundEditTemplate
}" ValueConverter="{StaticResource AreaGridValueConverter}" ValueConverterParameter="Name" />

I have a custom filter added to the column:

 

 

 

 

 

var operand = new MyGreaterThan();
operand.Icon = (
DataTemplate)this.Resources["GreaterThanOperatorTemplate"];
daGrid.Columns.DataColumns["U_Name"].FilterColumnSettings.RowFilterOperands.Add(operand);

The goal is to have a "greater than" filter, with a text box for entering the comparison value. I get the custom filter to show up in the filter row, and the text box for entering the filter value, but the problem is that I am not getting any notification that the filter is changed after entering a value. The FilteringExpression on my custom operand is not being called, and the Filtering event on the grid is not fired. I do see the object instance bound to the filter being modified. Is there something else I am missing? Thanks.

Parents
  • 5124
    posted

    Hello,

    As we discussed in the private support case that you submitted for this inquiry, the issue in the code was the Binding expressions for the TextBox.Text property in your UnboundEditTemplate and UnboundFilterTemplate.  Changing the Path from DataRow.Name to Value resolved the issue:

     Thanks,

Reply Children
No Data