WpfWindow("WPFApplication1").XamGrid("xamGrid1").SetCellData "{FILTER}[Company]", "alf"
WpfWindow("WPFApplication1").XamGrid("xamGrid1").ClearFilterCell "{FILTER}[Company]"
This topic provides reference information about the recordable user methods related to the testing of the filtering in the xamGrid™ control.
This topic contains the following sections:
The following table summarizes the purpose and functionality of the recordable methods for testing the filtering in the xamGrid control.
The ClearFilterCell deletes the content of the filter cell.
The ClearFilterCell method is recorded in a test when the end user clicks the filter cell’s Clear button.
When replaying the method:
The specified filter cell path is validated.
If visible, the Clear button is clicked.
The method accepts the path to the filter cell as a parameter.
The following table maps the desired configuration to parameters settings.
Setting a filter value for the Company column in the xamGrid first and then clearing the the filter.
WpfWindow("WPFApplication1").XamGrid("xamGrid1").SetCellData "{FILTER}[Company]", "alf"
WpfWindow("WPFApplication1").XamGrid("xamGrid1").ClearFilterCell "{FILTER}[Company]"
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The CloseFilterMenu method closes the filtering menu.
The CloseFilterMenu method is recorded in a test when the column’s filter menu is closed.
When replaying the method:
The specified column header is validated.
A check is performed to verify that filtering is allowed.
The filtering menu closes down.
The method accepts the column header name as a parameter.
The following table maps the desired configuration to parameters settings.
Closing the filtering menu of the Company column.
WpfWindow("WPFApplication1").XamGrid("xamGrid1").CloseFilterMenu "[Company]"
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The OpenFilterMenu method opens the filtering menu.
The OpenFilterMenu method is recorded in a test when the column’s filter menu is opened.
When replaying the method:
The specified column header is validated.
A check is performed to verify that filtering is allowed.
The filtering menu opens up.
The method accepts as a parameter a column header.
The following table maps the desired configuration to parameters settings.
Opening the filtering menu of the Company column.
WpfWindow("WPFApplication1").XamGrid("xamGrid1").OpenFilterMenu "[Company]"
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The SetFilterCellCompOperator method sets a filtering comparison operator.
The SetFilterCellCompOperator method is recorded in a test when a comparison operator is selected from the filter comparison operators combo box.
When replaying the method:
The specified cell path is validated.
The filter comparison operators combo box drops down.
The specified operator is set.
The method accepts as parameters the path to the filter cell and a comparison operator.
The following table maps the desired configuration to parameters settings.
Changing the comparison operator to Ends With and filtering the data that ends with en in the Company column.
WpfWindow("WPFApplication1").XamGrid("xamGrid1").SetFilterCellCompOperator "{FILTER}[Company]" ,igcEndsWith
WpfWindow("WPFApplication1").XamGrid("xamGrid1").SetCellData "{FILTER}[Company]", "en"
No default setting.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
The following topics provide additional information related to this topic.