Problem When I show RadWindow By Click Node

2 posts, 0 answers
  1. Bruce Lam
    Bruce Lam avatar
    23 posts
    Member since:
    Jun 2009

    Posted 11 Nov 2009 Link to this post

    I want to click on child node and it show a RadWindow. But sometime i click on node and it show , and sometime not. I dont know what reason? Please Help me to solve this problem.Thanks. This is my code, i has tried to put this code into RadTreeView1_NodeDataBound.. but i cannot

     

    protected

     

    void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)

     

    {

        e.Node.Attributes[

    "onclick"] = String.Format("return ShowChannel('{0}');", e.Node.Value);

     

    }

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Nov 2009 Link to this post

    Hi Iam,

    I tried opening RadWindow from clientside OnClientNodeClicking event and it is working fine in my end. Give a try with this and see whether it suits your scenario.

    aspx:
     
    <telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientNodeClicking="OnClientNodeClicking"
        <Nodes> 
          . . . 
        </Nodes> 
    </telerik:RadTreeView> 

    javascript:
     
    <script type="text/javascript"
        function OnClientNodeClicking(sender, args) { 
            var value = args.get_node().get_value(); 
            ShowChannel(value); 
        } 
        function ShowChannel(value) { 
            var oWnd = radopen("http://www.google.com"null); // open radwindow 
        } 
    </script> 

    Regards,
    Shinu.
Back to Top