Labels and TextBoxes
Labels and TextBoxes are the simplest dashboard components. Labels display text and data — from static strings to adapter-bound values with number formatting. TextBoxes capture user input and write it to a parameter for other components or Business Rules to consume.
Label Component
Labels display text on the dashboard. A Label can show:
- Static text —
Revenue Summary - Parameter values —
Report for |!EntityParam!| - Adapter-bound data —
Revenue: {1} | Profit: {2}(values from a DataTable)
DataTable Cell Binding
When a Label is bound to a data adapter, you use
{1}, {2}, etc. in the Text property to reference column values from the adapter's DataTable. The binding is configured through the DataTableCellsFromAdapter properties:| Property | Description |
|---|---|
| NumberOfDataTableCells | How many {N} placeholders the Label uses (e.g., 2 for {1} and {2}) |
| DataRowSelectionType | How to select the row: FirstRow, RowIndex, or KeyColumnNameAndValue |
| KeyColumnName | Column name for key-based row selection (used with KeyColumnNameAndValue) |
| KeyColumnValueOrRowIndex | The key value or row index to match |
| ResultColumnName | Which column to read the value from |
| NumberFormat | .NET format string for numeric values (e.g., #,##0, 0.00%, $#,##0.00) |
Font and Color Properties
| Property | Description |
|---|---|
| LabelFontFamily | Font family name (e.g., Segoe UI, Arial) |
| LabelFontSize | Font size in points |
| LabelBold | Bold text (True/False) |
| LabelItalic | Italic text (True/False) |
| LabelTextColor | Text color for positive or non-numeric values |
| LabelNegativeTextColor | Text color for negative numeric values |
| LabelZeroOffsetForFormatting | Threshold below which values are treated as zero for formatting purposes |
Label Example
Display revenue and profit from a SQL adapter in a single Label.
SQL Adapter —
RevenueProfitAdapter:Label configuration:
TextBox Component
TextBoxes capture free-form user input. The value the user types is written to the parameter specified by the BoundParameter property, making it available to other components and Business Rules.
TextBox Properties
| Property | Description |
|---|---|
| BoundParameter | The parameter name that receives the user's input |
| Text | Default text displayed before user interaction |
| MaxLength | Maximum number of characters the user can enter |
| IsEnabled | Whether the TextBox accepts input (True/False) |
| ToolTip | Hover text displayed when the user mouses over the component |
TextBox Example
Capture a user note that a Business Rule can read when processing data.
TextBox configuration:
When the user types into the TextBox, the value is stored in the
UserNotes parameter. A Dashboard Extender BR triggered by a button click can then read it:Common Properties
Both Labels and TextBoxes share these common component properties:
| Property | Description |
|---|---|
| IsVisible | Controls visibility (True/False, supports |!Param!| for conditional display) |
| IsEnabled | Controls interactivity |
| ToolTip | Hover text |
| DisplayFormat | Formatting template for the displayed value |
| SelectionChangedServerTask | Server task to execute when the value changes |
| SelectionChangedServerTaskArguments | Curly brace syntax arguments for the server task |
Related Content
- Parameters and Syntax —
{1}/{2}placeholder syntax and|!Param!|substitution - Data Adapters — SQL adapter setup for Label data binding
- Dashboard Business Rules — Reading TextBox values in Extender BRs