This is a migrated thread and some comments may be shown as answers.

Find checked TreeView nodes

1 Answer 67 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stefania
Top achievements
Rank 2
Stefania asked on 17 Dec 2014, 10:09 AM
Hi,
I populated my treeview like this
<telerik:RadClientDataSource runat="server" ID="TreeViewDataSource">
                          <DataSource>                              
                              <WebServiceDataSourceSettings BaseUrl="PivotAndChartsReportWebService.asmx/">
                                  <Select Url="GetTreeViewList" DataType="JSON" RequestType="Post" ContentType="application/json; charset=utf-8" />
                              </WebServiceDataSourceSettings>
                          </DataSource>
                          <ClientEvents />
                          <Schema DataName="d">
                          </Schema>
                      </telerik:RadClientDataSource>

<telerik:RadTreeView ID="RadTreeView1" runat="server" ClientIDMode="AutoID" OnClientTreePopulated="ExpandNodes"  
  
                        CheckBoxes="True" CheckChildNodes="True" ResolvedRenderMode="Classic" TriStateCheckBoxes="False"
                           ClientDataSourceID="TreeViewDataSource"
                           DataFieldID="Id" DataFieldParentID="ParentId" DataTextField="Text" DataValueField="Id" PersistLoadOnDemandNodes="false" Height="300px" Width="100%">

How can I find the checked nodes on server side?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 22 Dec 2014, 07:43 AM
Hello Stefania,

When you are using ClientDataSource on the server you don't have access to the nodes because everything is performed on the client side. If you need the nodes on the server you will have to use some serve binding.

Hope this will explain the issue.

Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Stefania
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or