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

Web.config registration missing! Two RadEditors on the page

5 Answers 109 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 03 Sep 2012, 10:41 AM
Today I have faced an issue, when I have added radeditor in my webpart like this:

<telerik:RadEditor runat="server" Width="536px" ID="reTemplate" ToolsFile="/_layouts/CISS/RadEditorTools/ToolsFile.xml"
                    ImageManager-ViewMode="Grid" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd">
                    <Paragraphs>
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header1 %>" Tag="<H1 class='Header1-Title'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header2 %>" Tag="<H2 class='Header2-Subtitle'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header3 %>" Tag="<p  class='Lead'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,NormalText %>" Tag="<p>" />
                    </Paragraphs>
                    <Modules>
                        <telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorStatistics" Enabled="false" />
                    </Modules>
                    <Tools>
                        <telerik:EditorToolGroup>
                            <telerik:EditorDropDown Name="DropDown" Text="TreÅ›ci dynamiczne" ItemsPerRow="1"
                                PopupWidth="150" PopupHeight="90" Width="150">
                                <telerik:EditorDropDownItem Value="Title" Name="<%$ Resources:Nsp.SendEmail,InsertPageTitle %>" />
                                <telerik:EditorDropDownItem Value="Adres" Name="<%$ Resources:Nsp.SendEmail,InsertPageURL %>" />
                                <telerik:EditorDropDownItem Value="Path" Name="<%$ Resources:Nsp.SendEmail,InsertPagePath %>" />
                                <telerik:EditorDropDownItem Value="Date" Name="<%$ Resources:Nsp.SendEmail,InsertModificationDate %>" />
                            </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <CssFiles>
                        <telerik:EditorCssFile Value="/_layouts/STYLES/CISS/Skanska.Portal.UI/telerik/EditorContentArea.css" />
                    </CssFiles>
                </telerik:RadEditor>

After inserting the webpart to the page and clicking InsertImage button on the tools pane of radEditor, the dialog appeared with the following message:

Web.config registration missing! (... and some other information suggesting that I should perform Httphandler registration in web.config using smarttags.)

The problem is that I actually have following registrations in my web.config:

<httpHandlers>
      <remove verb="GET,HEAD,POST" path="*" />
      <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
    </httpHandlers>
...
<handlers>
      <remove name="OPTIONSVerbHandler" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="svc-Integrated" />
      <remove name="WebDAV" />
      <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
      <add name="OwssvrHandler" scriptProcessor="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" path="/_vti_bin/owssvr.dll" verb="*" modules="IsapiModule" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="ReportViewerWebPart" verb="*" path="Reserved.ReportViewerWebPart.axd" type="Microsoft.ReportingServices.SharePoint.UI.WebParts.WebPartHttpHandler, Microsoft.ReportingServices.SharePoint.UI.WebParts, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add name="ReportViewerWebControl" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add name="TelerikWebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

And they work for the radeditor for sharepoint that shows up immediately  after entering edit mode. Still they do not seem to work for the second editor that appears in the webpart.

So to sum things up, I have two radeditors on the page, one coming from Sharepoint acceleration kit, working ok when it comes to opening dialogs, and another one instantiated directly in the aspx code of webpart, which does not work. Any ideas what should I do?

Thank  you in advance!

Adam

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Sep 2012, 03:38 PM
Hello Adam,

When it comes to SharePoint 2010 we always recommend using the specially designed RadEditor for SharePoint 2010. It automatically registers its dialog and spellcheck handlers and have a special file browser content provider written to work with the SharePoint libraries.

In order to use it, install the RadEditor for SharePoint 2010: http://www.telerik.com/help/aspnet-ajax/moss-installing_radeditor__radgrid_web_parts_on_sharepoint_2010.html. Then in you custom web solution you can use the SPRadEditorclass, which is defined in the Telerik.SharePoint namespace of the RadEditorSharePoint assembly. The dialog handlers will be automatically configured and the dialog will work without any additional configurations.

Here is a sample web part project with RadEditor for SharePoint 2010: RadEditorWebPart.zip.

You can find more information in the following articles: Installing RadEditor & RadGrid Web Parts on SharePoint 2010 and Using the RadEditor WebPart.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Adam
Top achievements
Rank 1
answered on 04 Sep 2012, 02:10 PM
Dear Rumen,

Thank you very much for your answer, still I would prefer to use "normal" radeditor in this case. Are using both versions alongside causes some compatibility issues? If yes, i will try to convert my project to use radeditor from SPRadEditorclass , but, if it is only a matter of additional configuration, I prefer to do it that way.

Best Regards

Adam
0
Rumen
Telerik team
answered on 05 Sep 2012, 12:00 PM
Hi,

My personal recommendation is to implement your SharePoint scenario with SPRadEditor because if you choose to use the regular editor, you will need to register its dialog/spellcheck handlers manually as well as write your own file browser content provider which will operate with the SharePoint libraries. You will get this features out-of-the box when working with SPRadEditor.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Swaroopa
Top achievements
Rank 1
answered on 12 Dec 2012, 06:50 AM
Hi

can you please share the dll to refer to add spRadEditor to my sharepoint application page.
I downloaded the dll from the forums and tried to refer it from my application page. It doesn't work. Is there a problem with the dll?

Thank you.
0
Rumen
Telerik team
answered on 13 Dec 2012, 04:21 PM
Hello,

You need to download the RadControls for ASP.NET AJAX suite, which will enable the download of Telerik_AJAX_Controls_For_Sharepoint2010_2012_3_1205_Dev|Trial.msi and Telerik_AJAX_Controls_For_Sharepoint2010_2012_3_1205_Dev|Trial.zip under your account. The msi installation will deploy the SPRadEditor.dll in the GAC. The zip installation contains RadControlsSP.wsp which you can open with WinRar/7-Zip and manually obtain the SPRadEditor.dll.

Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Sharepoint Integration
Asked by
Adam
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Adam
Top achievements
Rank 1
Swaroopa
Top achievements
Rank 1
Share this question
or