Updated July 23, 2007
Iron Speed Designer V4.3
The default behavior for dropdown filters generated by Iron Speed Designer is to postback an event immediately when a new selection is made. This sometimes becomes inconvenient when there are multiple filters and the end users would prefer to select from multiple filters first, and then press a Go button to begin the process of filtering.
The following example shows the Show Customers Table page built using the Northwind database. On the Table Panel Wizard (click the Configure button on the Show Customers Table page), select several fields on the Search step. Also, select the Company Name, Region and Country on the Filters step. Press Finish to display the search control and filters. You will most likely see the following search and filter controls on the page:
CustomersSearchArea (textbox) CustomersSearchButton (Go button)
CompanyNameFilter (dropdown list)
RegionFilter (dropdown list)
CountryFilter (dropdown list)
The Go button is the CustomersSearchButton next to the search area.
First, turn off the AutoPostBack for the three filters. Second, send an Event from the CustomersSearchButton (Go) whenever it is clicked to each of the three filters.
Step 1: Launch the Page Properties dialog from the Tools menu.
Step 2: Click Show Tree to display the tree on the left.
Step 3: Select the first of the three filters.
Step 4: Go to the Attributes tab and enter the following:
|
Pass-Through Attribute |
Value |
|
AutoPostBack |
false |
Step 5: Bind the events for the filter controls. In the Bindings tab’s Event Notification section, select the table control to which the search filters belong. If there is only one table control on the page, it will be selected by default.
Press OK on the Page Properties dialog.
Step 6: If you have a “Go” button to start the filtering process, your application must instruct the table control to update itself when the user presses the Go button.
|
Binding |
Value |
|
Button Command |
Apply search and filter to |
|
Select table control(s) |
CustomersTableControl |
Step 7: Build and run your application.