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

Changing the Telerik root namespace

3 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oasis Developers
Top achievements
Rank 1
Oasis Developers asked on 10 Aug 2010, 04:23 PM
I'm trying to change the telerik namspace because it conflicts with a previous version of Telerik and I'm using both on my site. I opened the source code in VS2008 and changed the Assembly name and default namespace in the Properties. I also right-clicked a class and chose Refactor > Rename and changed "Telerik" to "TelerikSC". In doing so I got 75 errors of the form:

'TelerikSC.Web.UI.RadDockZone.DescribeClientProperties(TelerikSC.Web.UI.IScriptDescriptor)': no suitable method found to override   C:\Users\myuser\Desktop\Telerik.Web.UI_2010_2_713_Source\RadControlsAjaxSource\Telerik.Web.UI\Dock\RadDockZone.Serialization.generated.cs   22   36   Telerik.Web.UI

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Aug 2010, 10:40 AM
Hello,

You also need to rename the Telerik namespace in all custom tools (files ending with .tt and .ttinclude).

Note that we do not support such custom builds of RadControls.

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Oasis Developers
Top achievements
Rank 1
answered on 11 Aug 2010, 02:30 PM
Thanks for the additional details. I'll try that out.

FYI, I'm only trying this custom build to see if it will work as a solution for running more than on version of the Telerik controls in my project. We're using Sitecore CMS which itself uses Telerik 2008. We'd like to use a control from our purchased Telerik 2010 package but some of the Sitecore built-in tools require 2008. I'm trying to have a solution where both Telerik DLLs can be used. Per Sitecore support, I went down a path of creating different <dependentAssembly> sections in my web.config where they reference the two DLLs. I then made sure the control registrations used the strong names for each assembly. This originally worked but then stopped working. My new idea was to re-namespace the 2010 version to see if that would work. Do you have any other recommendations for this issue?

Thanks in advance for the support.
0
Dimo
Telerik team
answered on 11 Aug 2010, 04:15 PM
Hello,

>> Do you have any other recommendations for this issue?

In order to use different RadControls versions in the same application, you must have two different assemblies with different names and namespaces. There is no other way.

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Oasis Developers
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Oasis Developers
Top achievements
Rank 1
Share this question
or