Skip to content

Commit 54990f1

Browse files
authored
Added Range and Selected date methods to RadGantt client side object article
1 parent 088d43c commit 54990f1

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

controls/gantt/client-side-programming/objects/radgantt-object.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The following table lists the most important methods of the **RadGantt** client-
4747
| **get_workWeekEnd** | none | Telerik.Web.UI.DayOfWeek |Returns the last day of the work week.|
4848
| **get_workWeekStart** | none | Telerik.Web.UI.DayOfWeek |Returns the first day of the work week.|
4949
| **set_allowColumnResize** | boolean | none |Enables/Disables column resizing. See **Example 3**.|
50+
| **get_rangeStart** | none | Date |Returns the Gantts's rangeEnd property.|
51+
| **get_rangeEnd** | none | Date |Returns the Gantts's selectedDate property.|
52+
| **get_selectedDate** | none | Date |Returns the Gantts's rangeStart property.|
5053
| **set_currentTimeMarkerInterval** | int | none |Sets the value of the Gantts's currentTimeMarkerInterval property. See **Example 4**.|
5154
| **set_displayDeleteConfirmation** | boolean | none |Enables/Disables confirmation dialog when the user deletes a task or a dependency.|
5255
| **set_height** | int | none |Sets the height of the Gantts's DOM element. See **Example 5**.|
@@ -63,7 +66,9 @@ The following table lists the most important methods of the **RadGantt** client-
6366
| **set_width** | int | none |Sets the width of the Gantts's DOM element.|
6467
| **set_workWeekEnd** | int | none |Sets the Gantts's last day of the work week. See **Example 7**.|
6568
| **set_workWeekStart** | int | none |Sets the Gantts's first day of the work week.|
66-
69+
| **set_rangeStart** | Date | none |Sets the value of the Gantts's rangeStart property. See **Example 8**.|
70+
| **set_rangeEnd** | Date | none |Sets the value of the Gantts's rangeEnd property. See **Example 9**.|
71+
| **set_selectedDate** | Date | none |Sets the value of the Gantts's selectedDate property. See **Example 10**.|
6772

6873
>caption  Example 1: Get a collection with all Gantt tasks.
6974
````JavaScript
@@ -108,6 +113,25 @@ var gantt = $find("<%= RadGantt1.ClientID %>");
108113
gantt.set_workWeekEnd(4);
109114
````
110115

116+
>caption Example 8: Set the range start.
117+
````JavaScript
118+
var gantt = $find("<%= RadGantt1.ClientID %>");
119+
gantt.set_rangeStart(new Date("2014/06/09"));
120+
````
121+
122+
>caption Example 9: Set the range end.
123+
````JavaScript
124+
var gantt = $find("<%= RadGantt1.ClientID %>");
125+
gantt.set_rangeEnd(new Date("2014/06/18"));
126+
````
127+
128+
>caption Example 10: Set the selected date.
129+
````JavaScript
130+
var gantt = $find("<%= RadGantt1.ClientID %>");
131+
gantt.set_selectedDate(new Date("2014/06/10"));
132+
````
133+
134+
111135
# See Also
112136

113137
* [Overview]({%slug gantt/client-side-programming/overview%})

0 commit comments

Comments
 (0)