AutoRefreshMode
- Last UpdatedNov 25, 2021
- 1 minute read
The AutoRefreshMode property is a read-write property that gets or sets when the Trend control is refreshed with data from the server.
Syntax
aaHistClientTrend.AutoRefreshMode = integer;
Result = aaHistClientTrend.AutoRefreshMode;
Remarks
The following table describes the enumerations for this property:
|
Value |
Enumeration |
Description |
|---|---|---|
|
0 |
Never |
No automatic refresh occurs. |
|
1 |
OnAddTags |
Automatic refresh occurs when tags are added. |
|
2 |
OnTimeSpanChange |
Automatic refresh occurs when the time span is changed. |
|
3 |
OnBoth |
Automatic refresh occurs both when tags are added and the time span is changed. This is the default value. |
If you are adding multiple tags, set this property to zero to prevent a refresh from occurring as each individual tag is added. When you are finished adding tags, set this property back to a non-zero value.
If the AutoRefreshMode property is zero, you need to call the RefreshData method to refresh the trend.
The default value is 3.