Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > RadTreeview -Selected nodes value in the new window which is open by window.open -URGENT

Not answered RadTreeview -Selected nodes value in the new window which is open by window.open -URGENT

Feed from this thread
  • Sindu avatar

    Posted on Feb 2, 2012 (permalink)

    Hi,

    I have a radtreeview in aspx page .it has 5 nodes and each nodes have 3 children.
    In the same window I have a button .
    I have checked some of the in the nodes in the treeview.

    When I click on the button a new window will be opened.
    How to get these selected nodes values in the newly opened window?
    My aim is to create a Telerik report on the newly opened window  based on the selected nodes  in the radtreeview.
    How to achieve my aim?

    Thanks

    Sindu.

    Reply

  • Posted on Feb 3, 2012 (permalink)

    Hello,

    Try the following.
    JS:
    function OnClientClick()
     {
      var RadWindow1 = $find("<%=RadWindow1.ClientID %>");
      var tree = $find("<%=RadTreeView1.ClientID %>");
      var label= document.getElementById("HiddenField").value;
      var label1 = document.getElementById(label);
      var val= "";
      var node = tree.get_allNodes();
      for (i = 0; i < tree.get_allNodes().length; i++)
      {
       if (node[i].get_checked() == true)
       {
         val = val + node[i].get_value();         
       }                 
     }
      label1.innerHTML = val;
      RadWindow1.show();
    }
    Note: Here I set the text in a label inside RadWindow.

    Thanks,
    Princy.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > RadTreeview -Selected nodes value in the new window which is open by window.open -URGENT
Related resources for "RadTreeview -Selected nodes value in the new window which is open by window.open -URGENT"

ASP.NET TreeView Features  |   Documentation   |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]