ASPxClientTreeList.GetSelectedNodeValues(fieldNames, onCallback) Method
Obtains specified data source field values within selected nodes, and submits them to the specified JavaScript function.
Declaration
GetSelectedNodeValues(
fieldNames: string | string[],
onCallback: ASPxClientTreeListValuesCallback,
visibleOnly?: boolean
): void
Parameters
Name | Type | Description |
---|---|---|
fieldNames | string | string[] | The names of data source fields whose values within selected nodes are returned. |
onCallback | ASPxClientTreeListValuesCallback | A ASPxClientTreeListValuesCallback object that represents the JavaScript function which receives the list of values as a parameter. |
visibleOnly | boolean |
|
Remarks
Example
- ASPxClientTreeList.GetSelectedNodeValues(string fieldNames, ASPxClientTreeListValuesCallback onCallback)
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ClientInstanceName="treeList" ...>
<Columns>
...
</Columns>
</dx:ASPxTreeList>
<br /> <br />
<dx:ASPxLabel runat="server" ID="ASPxLabel1" ClientInstanceName="label" Text="" Theme="Office365"></dx:ASPxLabel>
<br /><br />
<dx:ASPxButton ID="ASPxButton4" runat="server" Text="Get Selected Node Value" AutoPostBack="false" Theme="Office365">
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
- ASPxClientTreeList.GetSelectedNodeValues(String[] fieldNames, ASPxClientTreeListValuesCallback onCallback)
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ClientInstanceName="treeList" ...>
<Columns>
...
</Columns>
</dx:ASPxTreeList>
<br /> <br />
<dx:ASPxButton ID="ASPxButton4" runat="server" Text="Get Selected Node Value" AutoPostBack="false" Theme="Office365">
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
- ASPxClientTreeList.GetSelectedNodeValues(string fieldNames, ASPxClientTreeListValuesCallback onCallback, bool visibleOnly)
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ClientInstanceName="treeList" ...>
<Columns>
...
</Columns>
</dx:ASPxTreeList>
<br /> <br />
<dx:ASPxLabel runat="server" ID="ASPxLabel1" ClientInstanceName="label" Text="" Theme="Office365"></dx:ASPxLabel>
<br /><br />
<dx:ASPxButton ID="ASPxButton4" runat="server" Text="Get Selected Node Value" AutoPostBack="false" Theme="Office365">
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
- ASPxClientTreeList.GetSelectedNodeValues(String[] fieldNames, ASPxClientTreeListValuesCallback onCallback, bool visibleOnly)
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ClientInstanceName="treeList" ...>
<Columns>
...
</Columns>
</dx:ASPxTreeList>
<br /> <br />
<dx:ASPxButton ID="ASPxButton4" runat="server" Text="Get Selected Node Value" AutoPostBack="false" Theme="Office365">
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
See Also