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

Expand on + does not work

6 Answers 226 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 05 Mar 2008, 07:23 PM
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

6 Answers, 1 is accepted

Sort by
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:
Hence, there seems to be an issue with the Prometheus Implementation.

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
Simon
Telerik team
answered on 06 Mar 2008, 02:56 PM
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
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
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 :(




0
Yana
Telerik team
answered on 17 Nov 2008, 08:58 AM
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.
Tags
TreeView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Hayley
Top achievements
Rank 1
Stefan
Top achievements
Rank 1
Simon
Telerik team
Raman
Top achievements
Rank 1
Kurt
Top achievements
Rank 1
Yana
Telerik team
Share this question
or