Skip to content

Commit 1912edc

Browse files
committed
Update OrgChart client-side objects articles
1 parent 2819c4a commit 1912edc

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

controls/orgchart/client-side-programming/orgchartgroupitem-object.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ position: 3
1717
The **RadOrgChartGroupItem** object is returned by the **getGroupItem()** method of **OrgChartGroupItemCollection** object. The following table lists the most important methods:
1818

1919

20-
| **Name** | **Parameters** | **Return Type** | **Description** |
20+
| Name | Parameters | Return Type | Description |
2121
| ------ | ------ | ------ | ------ |
22-
| **getId** |none|string|Returns the current group item id value|
22+
| **getId** |none|string|Returns the current group item id value.|
23+
| **get_index** |none|int|Returns the group item's index in the OrgChartGroupItemCollection. |
24+
| **get_parent** |none|OrgChartGroupItemCollection|Returns the collection that contains the group item.|
25+
| **get_owner** |none|OrgChartNode|Returns the node that holds the OrgChartGroupItemCollection containing the group item.|
26+

controls/orgchart/client-side-programming/orgchartnode-object.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ position: 2
1717
The **OrgChartNode** object is returned by the **getNode()** method of the **OrgChartNodeCollection** object. It is also exposed by the event arguments of many client-side events (**eventArgs.get_node()**). The following table lists the most important methods:
1818

1919

20-
| **Name** | **Parameters** | **Return Type** | **Description** |
20+
| Name | Parameters | Return Type | Description |
2121
| ------ | ------ | ------ | ------ |
2222
| **getId** |none|string|Returns the current node id value|
2323
| **get_element** |none|string|Returns the `<li/>` element of the node|
2424
| **get_groupItems** |none|OrgChartGroupItemCollection|Returns a collection of the group items asociated with that node|
25+
| **get_nodes** |none|OrgChartNodeCollection|Gets the node's NodeCollection.|
26+
| **get_hierarchicalIndex** |none|string|Gets the node's Hierarchical index.|
27+
| **get_nodeListElement** |none|DOM element(ul)|Gets the node's Hierarchical index.|
28+
| **get_parent** |none|OrgChartNodeCollection|Gets the node parent's OrgChartNodeCollection.|
29+
| **get_owner** |none|RadOrgChart or OrgChartNode|Gets the parent node or the OrgChart if there are no other nodes up in the hierarchy|
30+

controls/orgchart/client-side-programming/radorgchart-object.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following table lists the most important methods of the client-side **RadOrg
3333

3434

3535

36-
| **Name** | **Parameters** | **Return Type** | **Description** |
36+
| Name | Parameters | Return Type | Description |
3737
| ------ | ------ | ------ | ------ |
3838
| **get_enableDragAndDrop** |none|Boolean|Returns whether user is allowed to drag and drop nodes.|
3939
| **saveClientState** |none|none|Saves the client state to the client state hidden field|
@@ -42,3 +42,18 @@ The following table lists the most important methods of the client-side **RadOrg
4242
| **get_nodes** |none|OrgChartNodeCollection|Gets a collection with all nodes|
4343
| **get_nodeListElement** |none|none|Gets the UL element of the RadOrgChart|
4444
| **get_element** |none|none|Gets the root DOM element of the RadOrgChart|
45+
| **drillDownOnNode** |string|none|Drills down on the node with the specified Hierarchical index. See **Example 1**.|
46+
| **extractNodeFromDomElement** |DOM element|none|Gets a reference to the node by passing its DOM element to the method.|
47+
| **extractGroupItemFromDomElement** |DOM element|none|Gets a reference to the group item by passing its DOM element to the method.|
48+
| **get_drilledNodeHierarchicalIndex** |none|string|Gets the Hierarchical index of the node that is drilled.|
49+
50+
51+
52+
>caption Example 1: Drill down on the node with Hierarchical index "0:1".
53+
````JavaScript
54+
var orgChartObject = $find("<%= RadOrgChart1.ClientID %>");
55+
var node = orgChartObject.get_nodes().getNode(0);
56+
var level1Child1Index = node.get_nodes().getNode(1).get_hierarchicalIndex();
57+
orgchart.drillDownOnNode(level1Child1Index);
58+
````
59+

0 commit comments

Comments
 (0)