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

RadEditor and DialogOpener

1 Answer 135 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
USI
Top achievements
Rank 1
USI asked on 08 Jul 2010, 12:29 PM
Hi,
I have an working user control under asp.net which i need to convert to an WebPart for SharePoint 2010. but in Sharepoint 2010 the ImageDialog has some problems.
I am using the custom FileBrowserContentProvider provided in the live demos to store images in a SQL Database, which is used in ImageManager, the dialog is used both outside and inside the radEditor control.
The problem is that when used in SharePoint 2010 the ImageDialog gives an error and it asks to register the  httphandlers. I added the lines to the SharePoint webconfig as shown bellow:

<system.web>
<httpHandlers>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
</system.web>

<system.webServer>
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
</system.webServer>

But it still doesn't work it gives an 403 error.
What is the proper way to integrate the radEditor and DialogOpener (used outside the radEditor) in sharepoint 2010 ?

UPDATE:
using the info in this page on  Problem 4 i managed to make it work, but it still says the httphandlers are still missing but then it shows up and works as it should.
the config are :
<system.web>
 <httpHandlers>   
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
 </system.web>
...
<system.webServer>
    <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
  </system.webServer>

And changing the DialogHandlerUrl on the RadEditor and DialogOpener to "/_LAYOUTS/BUV/Telerik.Web.UI.DialogHandler.aspx"

is there anyway to remove the httphandlers warning that shows ups ?

update2:
it seems it was a permission problem, using fiddler i found it was giving a 401 followed up by a 200 i just altered the webconfig to allow anyone to use the handler.

Thanks
Regards, Luís sá

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 13 Jul 2010, 08:30 AM
Hello Luis,

When it comes to SharePoint we recommend using the specially designed RadEditor for MOSS control.
This week we will release RadEditor for SharePoint 2010. It has specially designed content provider for its dialogs. You will be able to use the MOSSRadEditor class which is defined in the Telerik.SharePoint namespace of RadEditorSharePoint assembly.

Regarding the dialog handlers I suggest you to try using the fully qualified assembly name of Telerik.Web.UI when you define the handlers.


All the best,
Stanimir
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
Sharepoint Integration
Asked by
USI
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or