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

[Solved] Error Adding Any of RAD Controls into WebPart

2 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
osama
Top achievements
Rank 1
osama asked on 24 May 2009, 03:05 PM
Guys,
I am trying to add RadTreeview into my sharepoint webpart but every time i add it i keep getting the following error in my sharepoint page which host the Webpart am developing

An unexpected error has occurred.

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.

Troubleshoot issues with Windows SharePoint Services.

I have been tring every thing, I added the dlls as a safe cotrol in my web.config as descriped in http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html


This is my simple code:

Protected Overrides Sub CreateChildControls()
            MyBase.CreateChildControls()

          

            Dim panel As Panel = New Panel()
            panel.ID = "Panel1"

            Dim treeView As RadTreeView = New RadTreeView()
            treeView.ID = "RadTreeView1"
            treeView.Nodes.Add(New RadTreeNode("What's the time?"))
            panel.Controls.Add(treeView)
          
            Dim Label As New Label()
            Label.Text = "This is a label"
            panel.Controls.Add(Label)
            Me.Controls.Add(panel)

       
        End Sub

Please help !!!






2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 26 May 2009, 09:45 AM
Hi osama,

Maybe this problem is related to the one that you described in ticket: 214748 ?

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
osama
Top achievements
Rank 1
answered on 28 May 2009, 09:04 PM
Veselin

Thank you for your reply, yes it is releated to the ticket and to be honest i could not figure out how to reply to your reply.
I have tried what you have asked me by replacing RadScript manager with ScriptManager. How every there is no luck
I also checked the post you have attached but i could not get it to work at all.

as soon as i commentout any reference to Telerikto my webpart every thing goes well.

Please Can you advise what can i do?

Thank you

Tags
General Discussions
Asked by
osama
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
osama
Top achievements
Rank 1
Share this question
or