Hi friends,
In my page i used radtreeview and binded this radtreeview dynamically with database. when i click on expand symbol (+) radtreeview not expanding. when i click on root node (AF - Angel Falls) it's working fine. Root node expand not working at first time after that it's working fine.
Please find the screen shot of my radtreeview and please provide me the solution.
Thanks,
Nagendra.
In my page i used radtreeview and binded this radtreeview dynamically with database. when i click on expand symbol (+) radtreeview not expanding. when i click on root node (AF - Angel Falls) it's working fine. Root node expand not working at first time after that it's working fine.
Please find the screen shot of my radtreeview and please provide me the solution.
Thanks,
Nagendra.
9 Answers, 1 is accepted
0
Hello Nagendra,
Is there an error thrown, when you try to expand using the plus sign?
Could you, please, post an example reproducing the problem?
Regards,
Nikolay Tsenkov
the Telerik team
Is there an error thrown, when you try to expand using the plus sign?
Could you, please, post an example reproducing the problem?
Regards,
Nikolay Tsenkov
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0

Nagendra
Top achievements
Rank 1
answered on 13 Jul 2011, 11:51 AM
Hi Nikolay Tsenkov,
No error in my page, but not working plus sign(+) in radtreeview.
Radtreeview binded dynamically, but it's expand feature(+) is not working.
Thanks,
Nagendra.
No error in my page, but not working plus sign(+) in radtreeview.
Radtreeview binded dynamically, but it's expand feature(+) is not working.
Thanks,
Nagendra.
0

Nagendra
Top achievements
Rank 1
answered on 18 Aug 2011, 12:57 PM
Hi Nikolay Tsenkov,
Binded radtreeview dynamically like this.
BuildTreeView function for binding parent nodes to radtreeview
function for radtreeview node click
same thing i written for radteeview node expand
this function is not responding at parent level(at first time), but when i clicking on parent node node click function working fine. After node click event node expand event working fine.
Thanks,
Nagendra.
Binded radtreeview dynamically like this.
BuildTreeView function for binding parent nodes to radtreeview
Private
Sub
BuildTreeView()
Dim
data
As
DataTable = GetData(
New
MySqlCommand(
"SELECT distinct null as 'parent_id', vc.id as 'child_id', vc.code as 'child_code' from vw_community vc INNER JOIN min_com_lots mcl ON mcl.community_id = vc.id INNER JOIN tsm_schedule ts ON mcl.com_lot_id = ts.com_lot_id INNER JOIN tsm_schedule_activities_publish_s tsaps ON tsaps.schedule_id = ts.schedule_id And tsaps.user_id ="
+ Session(
"SelUserID"
)))
For
Each
row
As
DataRow
In
data.Rows
Dim
node
As
New
RadTreeNode()
node.ContextMenuID =
"contextMenu1"
node.Text = row(
"child_code"
).ToString()
node.Value = row(
"child_id"
).ToString()
'TreeView.Nodes.Add(node)
RadTreeView1.Nodes.Add(node)
node.ExpandMode =
True
RadTreeView1.Nodes.Add(node)
Next
End
Sub
Protected
Sub
RadTreeView1_NodeClick(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadTreeNodeEventArgs)
Handles
RadTreeView1.NodeClick
ddlFilters.SelectedItem.Text =
"Select Filter"
PopulateNodeOnDemand(e, TreeNodeExpandMode.ServerSideCallBack)
End
Sub
Protected
Sub
RadTreeView1_NodeExpand(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadTreeNodeEventArgs)
ddlFilters.SelectedItem.Text =
"Select Filter"
PopulateNodeOnDemands(e, TreeNodeExpandMode.ServerSideCallBack)
contextmenu()
End
Sub
Thanks,
Nagendra.
0
Hi Nagendra,
I tried to reproduce the issue that you encounter but with no success. Please take a look at the page that I have attached. When I click on a node it expands the node and populates it and when I click on the plus/minus sign it expands/collapses the node as expected. For the test I used the 2011.2.712.35 version of the controls.
Regards,
Kate
the Telerik team
I tried to reproduce the issue that you encounter but with no success. Please take a look at the page that I have attached. When I click on a node it expands the node and populates it and when I click on the plus/minus sign it expands/collapses the node as expected. For the test I used the 2011.2.712.35 version of the controls.
Regards,
Kate
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0

Nagendra
Top achievements
Rank 1
answered on 13 Sep 2011, 12:56 PM
Hi,
I checked your sample code, it's working fine.
I implemented same thing in my project with radtreeview properties, it's not working.
I will provide the login access to my site. Please check the my issue.
Thanks and Regards,
Nagendra.
I checked your sample code, it's working fine.
I implemented same thing in my project with radtreeview properties, it's not working.
I will provide the login access to my site. Please check the my issue.
Thanks and Regards,
Nagendra.
0

Nagendra
Top achievements
Rank 1
answered on 17 Sep 2011, 05:55 AM
Hi,
resolved my problem..
Thanks,
Nagendra.
resolved my problem..
Thanks,
Nagendra.
0

leaders
Top achievements
Rank 1
answered on 26 Feb 2012, 10:01 PM
Hi Nagendra,
I'm facing same issue could you please explain the solution.
Thanks
I'm facing same issue could you please explain the solution.
Thanks
0

Zaharah
Top achievements
Rank 1
answered on 03 May 2012, 08:36 PM
set the node ExpandMode property to ServerSide.
0

Prof. Francisco Araújo
Top achievements
Rank 2
Iron
answered on 04 Mar 2023, 04:19 PM
| edited on 04 Mar 2023, 04:20 PM
Remember and check: The parent_id root node must be NULL