You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result
The filter is applied to the grid in the same way as if it was applied in the UI, but the grid is blank after the button click.
Notes
After applying the filter, if you open the Excel menu of the "ID" column, the correct values are checked. If you click the "Apply" button in the column options, the filter is applied correctly.
@agoldenbaum The reason for this is because the ColumnFilterConditionGroup defaults to AND so the filter in the sample is looking for individual records that have ProductID equal to 1001, 1002 and 1003 which is not possible. The group needs to use an OR filter. Unfortunately all the properties on these filter types are obfuscated so it's not apparent how to do this.
If you adjust the filter code like below it should work:
letgroup: ColumnFilterConditionGroup=newColumnFilterConditionGroup();group.g=true;// use OR filterletgroupCollection=(groupasany).fasColumnFilterConditionCollection;letfilterCondition1: ColumnComparisonFilterCondition=newColumnComparisonFilterCondition();filterCondition1.f=ColumnComparisonConditionOperatorType.Equals;filterCondition1.l=1001;
...
I'm leaving the issue open because we need to resolve the obfuscation issue.
Steps to Reproduce
Result
The filter is applied to the grid in the same way as if it was applied in the UI, but the grid is blank after the button click.
Notes
After applying the filter, if you open the Excel menu of the "ID" column, the correct values are checked. If you click the "Apply" button in the column options, the filter is applied correctly.
binding-local-data.zip
The text was updated successfully, but these errors were encountered: