Find checked TreeView nodes

2 posts, 1 answers
  1. Stefania
    Stefania avatar
    107 posts
    Member since:
    May 2013

    Posted 17 Dec 2014 Link to this post

    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
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 22 Dec 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top