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

VS2010 & Sharepoint

11 Answers 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
julian
Top achievements
Rank 1
julian asked on 31 Jul 2011, 07:03 PM
I just downloaded a trial on ASP.net ajax control. When I develop Webpart for Sharepoint using Telerik controls ajax, can I deploy it to Sharepoint 2007. Any documentation on how to go about?  Thank you

11 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 01 Aug 2011, 08:13 AM
Hello Julian,

Review the following online help article: Create an AJAX-enabled SharePoint WebPart that uses RadControls

Regards,
Stanimir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
julian
Top achievements
Rank 1
answered on 09 Aug 2011, 10:32 PM
I got this error,

An error occurred during the processing of . Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.
0
julian
Top achievements
Rank 1
answered on 09 Aug 2011, 10:56 PM
i don't see Webconfig file. Is this normal?
0
Rumen
Telerik team
answered on 12 Aug 2011, 10:01 AM
Hello Julian,

You will be unable to use RadControls for ASP.NET AJAX without a web.config file, because all settings that enable the AJAX in the project are placed in the web.config file.

To fix the "Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies" error locate the web.config file in the project for example using the Windows or Visual Studio search and make sure that all references to the Telerik.Web.UI.dll are fully qualified.

For example this handler will cause error:
<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

but this one is correct and will not:

<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource,Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />


Another and recommended approach is to install and use the specially designed RadEditor for SharePoint 2007 (MOSS). You can download it from your account and install it by following the instructions in the following help article: http://www.telerik.com/help/aspnet-ajax/moss-installing-radeditor-in-moss-2007-farm.html

RadEditor for Microsoft Office SharePoint Server extends the web content authoring environment of SharePoint 2007/2010 by providing cross-browser compatibility and support for the Apple Mac OS platform. In the default configuration, the product offers an almost identical functionality level as the integrated rich-text editor and can be used in the following scenarios:

  • Rich-text field control in SharePoint forms (in Lists, Wikis, Blogs, etc.)

  • Content editor Web Part

  • Rich-HTML field in Web Content Management (publishing) scenarios



All the best,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
julian
Top achievements
Rank 1
answered on 12 Aug 2011, 09:32 PM
I am using VS2010 - Sharepoint 2010 - Visual Web Part, I don't see Webconfig file in my project. I do see my Webconfig for Sharepoint. Do I modify that file?
0
julian
Top achievements
Rank 1
answered on 13 Aug 2011, 09:42 PM

I need to add #1 & #2 below  to my config file in my Sharepoint 2007, correct? Is there anything else I need to do?  Please also my attachments. according to this link (http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html) , mine does not show Telerik.Web.UI in Assembly folder. I can't drag and drop it neither. Please advise. Also, Telerik.Web.UI  's version is 2011.2.712.40, do I need to add this to Reference?

1.

<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource,Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
 

2.

<SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />
<SafeControl Assembly="Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.Design" TypeName="*" Safe="True" />

0
julian
Top achievements
Rank 1
answered on 13 Aug 2011, 09:52 PM
I have a demo on this coming Monday using Telerik controls.Your help is greatly appreciated.
0
Stanimir
Telerik team
answered on 15 Aug 2011, 02:15 PM
Hello Julian,

In order to help you further I will need the following information.

1. Can you confirm that you installed the SharePoint 2010 Web Parts on the server where you want to deploy your visual web part? This will automatically deploy all the necessary assemblies (including Telerik.Web.UI 3.5) and will modify the web.config file of your SP2010 site.

2. The web.config file of your SharePoint site is located in the c:\inetpub\wwwroot\wss\VirtualDirectories\80 folder. I will need to review this file in order to verify that all the correct entries are made.

3. Regarding the Telerik.Web.UI.dll: It should be loaded in the GAC of the SharePoint server or in the bin folder of the SP2010 application. By defaout the bin folder is c:\inetpub\wwwroot\wss\VirtualDirectories\80\bin.

4. It will be great if you can provide me with a sample visual web part which you try to develop. I will review it and advice you if there are any problems in the code.



Regards,
Stanimir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
julian
Top achievements
Rank 1
answered on 23 Aug 2011, 07:59 PM
I got it to work now, but ran to different problem. could you help further?
0
julian
Top achievements
Rank 1
answered on 23 Aug 2011, 10:48 PM
Here is my code behind. This is using RadGrid and Grouping. If I use Ispostback = false, then it does not group theml
0
Stanimir
Telerik team
answered on 25 Aug 2011, 03:10 PM
Hello Julian,

In order to help you further I will need the following information.

1. Provide me with the web.config of your SP2010 site. By default it is located in the c:\inetpub\wwwroot\wss\VirtualDirectories\80 folder.
2. Try to isolate the issue in a sample working Web Part project, which I can deploy on our test server and debug. Provide me with the source code of this project.

After I review the provided information I will provide you with a suitable solution.



Best wishes,
Stanimir
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
julian
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
julian
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or