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

Radtreeview Node Click event not Firing.

5 Answers 389 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Abhishek Chauhan
Top achievements
Rank 1
Abhishek Chauhan asked on 21 Feb 2010, 04:56 PM
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

5 Answers, 1 is accepted

Sort by
0
Abhishek Chauhan
Top achievements
Rank 1
answered on 22 Feb 2010, 06:18 AM
SomeOne please pick this thread and help me out.

Thanks ,
Abhishek
0
Yana
Telerik team
answered on 23 Feb 2010, 08:29 AM
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.
0
Abhishek Chauhan
Top achievements
Rank 1
answered on 23 Feb 2010, 08:35 AM
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
0
John Conrad
Top achievements
Rank 1
answered on 04 Mar 2011, 06:51 AM
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.
0
Yana
Telerik team
answered on 09 Mar 2011, 10:02 AM
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!
Tags
TreeView
Asked by
Abhishek Chauhan
Top achievements
Rank 1
Answers by
Abhishek Chauhan
Top achievements
Rank 1
Yana
Telerik team
John Conrad
Top achievements
Rank 1
Share this question
or