Action Range
- Last UpdatedOct 10, 2025
- 1 minute read
The actionRange property is used to handle the returned value of the configured supported elements. When any of the following elements are updated, the widget UI is also updated accordingly. You can set these elements individually or collectively. If the value of the element isn't set, the default value is used.
|
Element Name |
Data Type |
Default Value |
|---|---|---|
|
duration Note: This is only applicable if timePeriod is set to 0. |
Numeric > 1 (hour) |
8 |
|
timeRangeStartTime Note: This is only applicable if timePeriod is set to 1. |
Date string (local time) |
" " |
|
timeRangeEndTime Note: This is only applicable if timePeriod is set to 1. |
Date string (local time) |
" " |
|
enableAction1 |
Boolean |
false |
|
enableAction2 |
Boolean |
false |
|
enableAction3 |
Boolean |
false |
Example 1
control.findByXmlNode("Widget1").widgetProperties.actionRange = JSON.stringify(
{
duration : 5,
timeRangeStartTime : "",
timeRangeEndTime : "",
enableAction1 : true,
enableAction2 : false,
enableAction3 : false,
});
Example 2
control.findByXmlNode("Widget1").widgetProperties.actionRange = JSON.stringify(
{
timeRangeStartTime : "",
timeRangeEndTime : "",
});
Note: timeRangeStartTime and timeRangeEndTime are expected to be filled in local time with the current culture used in a product.
Example 3
You can use the following script in a Date Time control to send the date to a Gantt Chart widget.
var date = kendo.parseDate(currentValue, "MM/dd/yyyy HH:mm:ss");
var dtStart = SFU.GetDateTimeInServerUTCFormat(date, true);
control.findByXmlNode("Widget1").widgetProperties.actionRange = JSON.stringify(
{
timeRangeStartTime : dtStart,
});