|
Go to: |
Tools, Properties..., Attributes tab |
These attributes control specific types of controls generated by Iron Speed Designer. Generally these attributes govern specific portions of code that is generated for your application depending on the selected attributes and their values.
The ASP.NET controls have a wide variety of properties that can be used to govern the controls’ behaviors. You can enter any .NET control property into the Attributes tab and Iron Speed Designer will insert them into the generated control tags.
|
Pass-Through Attribute |
Description |
||||||
|
AutoPostBack |
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. If you have a “Go” button to start the filtering process (AutoPostBack = False), your application must instruct the table control to update itself when the user presses the Go button. However, instead of notifying the table control, it’s better to notify the filter control(s) and let it (them) forward the message to the table control. This ensures that the table control gets notified by the filter control rather than from the button control. See Turning off AutoPostBack on filters for details.
|
||||||
|
Columns |
Specifies the screen width of the text box if the style indicates the field filter is a text box.
|
||||||
|
This pass-through attribute is generated by the Application Wizard and not set directly. It is generally set to “Filter_Input”.
|
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. The ‘Go’ button is the CustomersSearchButton next to the search area.
First, turn off the AutoPostBack for the filters in the table panel. Second, send an Event from the CustomersSearchButton (Go button) whenever it is clicked to each of the filters.
Step 1: Open the Properties dialog (Tools, Properties...) and display the tree on the left (click the ‘Show Tree’ button).
Step 2: Select each of the filters in turn and enter the following in the Attributes tab:
|
Tab |
Pass-Through Attribute |
Value |
|
Attributes |
AutoPostBack |
false |
Step 3: Bind the events for each filter control. In the Bindings tab’s Event Notification section, select the table control to which the search filter belongs. If there is only one table control on the page, it will be selected by default.
Step 4: 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.
|
Tab |
Property |
Value |
|
Bindings |
Action |
Apply search and filter to |
|
Bindings |
Select table control(s) |
CustomersTableControl |
Press OK to close the Properties dialog.
Step 5: Build and run your application.
FieldFilter Tag
FieldFilter Display Properties
FieldFilter Binding Properties
FieldFilter Pass-Through Attributes