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

[Solved] Moss Integration

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Goetz Boué
Top achievements
Rank 1
Goetz Boué asked on 10 Jun 2008, 04:56 PM
Hi guys,

Just beginning to use your Trreview Control and I am trying to instantiate it in a web part. 

Code is :

radtreeview1 = new RadTreeView();
        radtreeview1.ID = "radtreeview1";

        RadTreeNode node = new RadTreeNode();
        node.Text = "Helo";
        node.Value = "World";
        node.ExpandMode = TreeNodeExpandMode.ServerSide;

        radtreeview1.Nodes.Add(node);
        Controls.Add(radtreeview1);

However, when the web part renders I get the following Javascript error and don't know where to start to try to fix it, could you please advise:

Error: 'null' is null or not an object

When debugging it turns out that on line
_1d3.scrollTop=_1d2;

_ld3 is a null object.

Am I doing something wrong?





1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 11 Jun 2008, 06:17 AM
Hi Goetz,

Please try the following code snippet and let us know how it goes.

RadTreeView myRadTreeView = new RadTreeView();  
myRadTreeView.ID = "radtreeview1";  
Controls.Add(myRadTreeView);  
 
RadTreeNode node1 = new RadTreeNode();  
node1.Text = "Helo";  
node1.Value = "World";  
node1.ExpandMode = TreeNodeExpandMode.ServerSide;  
 
myRadTreeView.Nodes.Add(node);  
 


Sincerely yours,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Goetz Boué
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or