I bound the treeview with the help of an IHierarchicalEnumerable
RadTreeView treeView = new RadTreeView();
treeView.DataFieldID = "Id";
treeView.DataTextField = "Titel";
treeView.DataValueField = "Id";
treeView.DataFieldParentID = "ParentId";
treeView.DataNavigateUrlField = "URL";
treeView.DataSource = source;
treeView.DataBind();
I loved the fact that all of a sudden the whole Hierarchy was populated in the tree based on my object-model.
However, the top-nodes cannot be expanded when clicking on the +-sign.
I checked the html-source and it does contain an <ul>-block with my children with the style "display:none". So all children are being rendered onto the client-side (but are hidden). It seems as if the javascript-event for clicking the plus-sign is not fired.
Do you have an idea what the cause is? If not, can you guide me how I can check if a javascript-event is fired (I have firefox-firebug and could set a breakpoint if you like).
cheers
Stefan
RadTreeView treeView = new RadTreeView();
treeView.DataFieldID = "Id";
treeView.DataTextField = "Titel";
treeView.DataValueField = "Id";
treeView.DataFieldParentID = "ParentId";
treeView.DataNavigateUrlField = "URL";
treeView.DataSource = source;
treeView.DataBind();
I loved the fact that all of a sudden the whole Hierarchy was populated in the tree based on my object-model.
However, the top-nodes cannot be expanded when clicking on the +-sign.
I checked the html-source and it does contain an <ul>-block with my children with the style "display:none". So all children are being rendered onto the client-side (but are hidden). It seems as if the javascript-event for clicking the plus-sign is not fired.
Do you have an idea what the cause is? If not, can you guide me how I can check if a javascript-event is fired (I have firefox-firebug and could set a breakpoint if you like).
cheers
Stefan
6 Answers, 1 is accepted
0
Hayley
Top achievements
Rank 1
answered on 05 Mar 2008, 10:08 PM
I'm having exactly the same problem. All the items are appearing in the source for the page but the style is set to display:none.
0
Stefan
Top achievements
Rank 1
answered on 06 Mar 2008, 11:52 AM
What I found out so far:
I'll try to narrow it down and will get back if it works in my real application.
However, please Telerik guys, could you please investigate this?
- I tried the following sample standalone: r.a.d TreeView Binding using HierarchicalDataSourceControl Class and Custom Business Objects Collections - it works fine
- I added the sample code to my application - does't work (nodes don't open)
- I reduced the page in which I included the sample code to almost nothing - doesn't work
- By chance I noticed the Using-Statement. The sample uses using Telerik.WebControls whereas I used using Telerik.Web.UI;
I'll try to narrow it down and will get back if it works in my real application.
However, please Telerik guys, could you please investigate this?
0
Hello Stefan,
Could you open a formal support ticket and send to us a small project which exhibits the erroneous behaviour? There might be a javascript error, which we would like to investigate and confirm locally.
Thank you in advance for your cooperation and understanding.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Could you open a formal support ticket and send to us a small project which exhibits the erroneous behaviour? There might be a javascript error, which we would like to investigate and confirm locally.
Thank you in advance for your cooperation and understanding.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Raman
Top achievements
Rank 1
answered on 30 Apr 2008, 08:41 PM
I am having the same problem although I am populating the nodes collections in code. I am developing a web part under SharePoint if that lends any help. I have attached event handlers to NodeClick and NodeExpand but nothing happens - i.e. no calls are made to the server.
-Raman
-Raman
0
Kurt
Top achievements
Rank 1
answered on 14 Nov 2008, 09:43 PM
I am having a similar issue where the [+] action does not fire when using FireFox 3.x with the AJAX RadTree view. The control works fine in IE7. In my case, I do have a few client event wired up, specifically:
OnClientNodeDragStart="ClientNodeDragStart"
OnClientNodeDropped="ClientNodeDropped"
CnClientContextMenuItemClicking="SourceMenuItemClicking"
After experimenting a while, I found the tree worked properly when I removed the client event settings. After discovering this, I figured that I must have a JS syntax error somewhere, so I decided to comment out all the JS function guts, so all the above methods were effectivly empty shells. I figured it would work now, and I could then find the offending code.. no luck :(. It seems the setting any one of the afore mentioned client events seems to cause the issue.
I still have not found a solution :(
OnClientNodeDragStart="ClientNodeDragStart"
OnClientNodeDropped="ClientNodeDropped"
CnClientContextMenuItemClicking="SourceMenuItemClicking"
After experimenting a while, I found the tree worked properly when I removed the client event settings. After discovering this, I figured that I must have a JS syntax error somewhere, so I decided to comment out all the JS function guts, so all the above methods were effectivly empty shells. I figured it would work now, and I could then find the offending code.. no luck :(. It seems the setting any one of the afore mentioned client events seems to cause the issue.
I still have not found a solution :(
0
Hi Kurt,
I am not able to replicate the described issue, you can find attached my test project. Could you modify it so that we can observe the problem and send it back to us? Thanks
Best wishes,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am not able to replicate the described issue, you can find attached my test project. Could you modify it so that we can observe the problem and send it back to us? Thanks
Best wishes,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.