Radtreeview Node Click event not Firing.

6 posts, 0 answers
  1. Abhishek Chauhan
    Abhishek Chauhan avatar
    29 posts
    Member since:
    Sep 2009

    Posted 21 Feb 2010 Link to this post

    Hi,

    I have a simple rad tree view to which I am dynamically adding the nodes.
    But the nodeclick event is not getting fired.
    I have even tried setting "PostBack" fot the nodes to "true" but it didn't solve my problem.
    Below is my code(.ascx)-

    <

     

    telerik:RadAjaxLoadingPanel ID="radajaxloadingpanelAssociateEntities" runat="server" Transparency="50">

     

     

    <div id="divLoadingPnl" runat="server" style="position: absolute; left: 400px; top: 250px">

     

     

    <asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." ImageUrl="~/wpresources/PIMS/Images/progress.gif"/>

     

     

    </div>

     

     

    </telerik:RadAjaxLoadingPanel>

     

     

    <telerik:RadAjaxPanel ID="radajaxpanelAssociateEntities" LoadingPanelID="radajaxloadingpanelAssociateEntities"

     

     

    runat="server" Height="650px" Width="948px">

     

     

    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">

     

     

    <tr style="width: 100%; height: 50%">

     

     

    <td style="width: 278px">

     

     

    <telerik:RadTreeView runat="server" ID="radtvFolderStructure"

     

     

    OnLoad="radtvFolderStructure_Load" style="position: relative"

     

     

    OnNodeClick="radtvFolderStructure_NodeClick" >

     

     

    </telerik:RadTreeView>

     

     

    </td><td>

     

     

    <telerik:RadGrid ID="rdgDocuments" runat="server" Height="325" Width="670" Skin="Hay">

     

     

    </telerik:RadGrid>

     

     

    </td></tr><tr><td></td><td>

     

     

    <telerik:RadGrid ID="rdgComments" runat="server" Height="325" Width="670" Skin="Hay">

     

     

    </telerik:RadGrid>

     

     

    </td></tr>

     

     

    </table>

     

     

    </telerik:RadAjaxPanel>

     


    Can anyone please help me out with this?

    PS-I am using radControls for asp .net ajax version Q2 2008.

    Thanks iN Advance,
    Abhishek
  2. Abhishek Chauhan
    Abhishek Chauhan avatar
    29 posts
    Member since:
    Sep 2009

    Posted 22 Feb 2010 Link to this post

    SomeOne please pick this thread and help me out.

    Thanks ,
    Abhishek
  3. Yana
    Admin
    Yana avatar
    4795 posts

    Posted 23 Feb 2010 Link to this post

    Hello Abhishek,

    How do you populate the treeview? It should be populated only the first time the page loads.

    Regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Abhishek Chauhan
    Abhishek Chauhan avatar
    29 posts
    Member since:
    Sep 2009

    Posted 23 Feb 2010 Link to this post

    Hi Yana,

    Thanks for replying that issue has been resolved, actually I was getting "Sys is not defined." java script error so i modified my web config entries and it started working.

    Thanks,
    Abhishek
  5. John Conrad
    John Conrad avatar
    15 posts
    Member since:
    Dec 2010

    Posted 04 Mar 2011 Link to this post

    Where do you see the error? I have the same problem right now, difference is that there's no error message. When i click the node, i get the postback, but it doesn't hit my method trvFunctions_NodeClick

     

    <telerik:RadTreeView ID="trvFunctions" runat="server" DataFieldID="ID" DataTextField="DISP_TEXT" DataFieldParentID="PARENT" >
    </telerik:RadTreeView>

    Codebehind
        Public Sub trvFunctions_NodeClick(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs) Handles trvFunctions.NodeClick
    ' Do Something
        End Sub

    Help please! Thanks!

    Edit: It's also happening to NodeDrop.
  6. Yana
    Admin
    Yana avatar
    4795 posts

    Posted 09 Mar 2011 Link to this post

    Hi Abhishek Chauhan,

    Where exactly the datasource of the treeview is set? Could you please provide more details? Thanks

    Best wishes,
    Yana
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top