RadEditor and DialogOpener

2 posts, 0 answers
  1. USI
    USI avatar
    26 posts
    Member since:
    Oct 2009

    Posted 08 Jul 2010 Link to this post

    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á
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 13 Jul 2010 Link to this post

    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

Back to Top