Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I have the already reported problem of the "forever loading" panel when "Add Link" or "Add Image" is selected from the toolbar. In my case I am trying to develop a WSS web part that will have an ASPxHTMLEditor control that will be filled/edited in runtime customly instead of binding it to a list item field. The attached solution, consisting of two projects, is developed using WSPBuilder. In fact the web part loads a user control, a commonly used approached for creating web parts. Although this approach works everywhere else (other dev express controls), it does not work perfectly for the ASPxHTMLEditor control since the Add Link and Add Image are not working. (this functionality is absolutely required in my case). The web config file has been manually modified to use the HTTP handlers as discribed in various areas in this site.

                                    Can you please help?

                                0

                                Hello Velti,

                                Thank you for the project. I assume that it might take some time to examine the issue on our SharePont server. Please excuse us for any delay. We'll respond soon.

                                Thanks,
                                Vest

                                0

                                Any progress on the issue?

                                Regards

                                0

                                Hello Velti,

                                Please accept our sincere apologies for the delay. But we still require some time. We'll try to respond soon.

                                Thanks,
                                Vest

                                0

                                Do not worry. Just curious. I am using AJAX toolkit HTML editor for now (not compared to ASPx, it does the job for now - but not for long LOL !!!)

                                0

                                Hello Velti,

                                Thank you for your patience. We've processed the issue:

                                We have a special code that adjusts the ASPxHtmlEditor for SharePoint. If you have the sources, you'll be able to see the full code. Its main part is the following:

                                [C#]
                                // Controls.cs public class SPxHtmlEditor : ASPxHtmlEditor{ ... protected override string GetDefaultFormUrl(string dialogFormName) { return CommonUtils.GetSPDefaultFormUrl(dialogFormName, typeof(ASPxHtmlEditor)); } ... }

                                Using this information, you can customize the UserControl in the following manner:

                                devcontrol.ascx

                                [ASPx]
                                <%@ Assembly Name="testdevUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d9f375c0779319c" %> <%@ Control Language="C#" AutoEventWireup="true" CodeFile="devcontrol.ascx.cs" Inherits="testdevUI2.devcontrol2" %> <%@ Assembly Name="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %> <%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %> <%--<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server"> </dx:ASPxHtmlEditor>--%>

                                devcontrol.ascx.cs:

                                [C#]
                                using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Microsoft.SharePoint; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.WebPartPages; using DevExpress.Web.ASPxClasses.Internal; using DevExpress.Web.ASPxHtmlEditor; namespace testdevUI2{ public partial class devcontrol2 : UserControl{ MyHtmlEditor myHtmlEditor; protected void Page_Load(object sender, EventArgs e) { myHtmlEditor = new MyHtmlEditor(); myHtmlEditor.ID = "MHE1"; Controls.Add(myHtmlEditor); } } public class MyHtmlEditor : ASPxHtmlEditor{ protected override string GetDefaultFormUrl(string dialogFormName) { return CommonUtils.GetSPDefaultFormUrl(dialogFormName, typeof(ASPxHtmlEditor)); } } }

                                E.g. this way, the ASPxHtmlEditor will take forms from the c:\Inetpub\wwwroot\wss\VirtualDirectories\80\resources\DevExpress\ASPxHtmlEditorForms\ folder. Our webparts work in the following manner: you can override a path returned by the GetDefaultFormUrl and get a required one.

                                Thanks,
                                Vest

                                0

                                Thank you for the response.

                                This approach got us one step closer. The folder 80/resources is a good place to put the controls. However, although the code stops complaining that it cannot find the ascx files for the forms required for the display of the pop-ups, the problem now is that it complains that it cannot find the corresponding assembly and more specifically, when I attach to the process for debugging I get the message "Could not load type 'InsertImageForm'."

                                From the outside, nothing has changed. We still get the "Forever loading pop-up"

                                0

                                One more thing. I tried to put all ascx files and their code behind in 12 hive (CONTROLTEMPLATES) and at the same time override the path per your instructions changing the path to _controltemplates, same thing

                                0

                                Hello Velti,

                                Thank you for updating, but unless I'm mistaken you get a message in which you are complaining about ASPxHtmlEditor resources. By default, all its user controls should be located in the ~/DevExpress directory.
                                It is impossible to change the ASPxHtmlEditor behavior without modifying its source until the Add the capability to specify a path to ASPxHtmlEditor's dialog forms within a web site is implemented.

                                Thanks,
                                Vest

                                0

                                I USED to get the message that the forms were not found (that is the ascx files). Now the problem is that the assembly related to the ascx (it's code behind) cannot be LOADED. The message that I am getting in debuging is : "Could not load type 'InsertLinkFrom'" in the case of the Insert Link.

                                I did not attempt, nor wish, to modify the devexpress code to fix this. I am only trying to find where to place the DevExpress forms dir in order for WSS to see it. I tried to put it under /80, /80/resources (the default returned per your sample code), and the _controlstemplate/testdev (the web part dir in this case) - Same result. Obviously WSS (or Sharepoint) either does not see the code behind or does not execute it due to not allowed code (???)

                                Any other ideas?

                                0

                                Velti,

                                Thank you for reactivation. To provide a precise answer, I need to test the ASPxHtmlEdito again. I assume that it might require some time.
                                Please excuse me for that.

                                Thanks,
                                Vest

                                0

                                Thank you for looking into the issue. I only wanted to make sure that we both have the same understanding of the problem. Please feel free to suggest what you think might solve the problem and I will happily try it. One more thing though. Please ty to find a solution as soon as practically possible - I am running out of time.

                                0

                                Hello Velti,

                                We repeated previously suggested steps showing how to deploy the ASPxHtmlEditor on a clear system, and saw that everything worked fine. In our scenario, we deployed solutions to the SharePoint server, and in the c:\Inetpub\wwwroot\wss\VirtualDirectories\80\resources\DevExpress\ASPxHtmlEditorForms\ folder files InsertImageForm.ascx and InsertImageForm.ascx.cs were available.

                                You can take these files from the DevExpressSharepointWSS_GAC.wsp file (c:\Program Files\DevExpress 2010.1\Components\Components\Tools\SharePoint\) :
                                DevExpressSharepointWSS_GAC.wsp\DevExpress\ASPxHtmlEditorForms\

                                Does this help you?

                                Thanks,
                                Vest

                                0

                                We are getting somewhere. The pop-up for the links now works as well as the table one. I cannot make the imageupload to work it still hangs. When debugging the new codebehind "complains" at the following point

                                    public bool IsAllowUploadFileToServer() {
                                        string folder = (HtmlEditor as SPxHtmlEditor).GetUploadImageFolder(); <- HERE
                                        return SharePointHelper.DoesUserHavePermissionToUpload(folder, Context);
                                    }

                                with an error "Object reference not set to an instance of an object." I tried setting the property manually by setting:

                                 protected void Page_Load(object sender, EventArgs e)
                                        {
                                             myHtmlEditor = new MyHtmlEditor();
                                             myHtmlEditor.ID = "MHE1";
                                             this.Controls.Add(myHtmlEditor);
                                             myHtmlEditor.SettingsImageUpload.UploadImageFolder = "~/public";
                                         }

                                but this did not improve things

                                To be frank I never imagined that the codebehind of the forms were different for sharepoint but that's OK. However the path you have led me into has made me wonder. Do I now have to run the ASPxSharePointRegisterer.exe (I suppose not). Do I have to prepare my system in any other way? Again I suppose not. What are you consider a "clear system"? For me it is Windows 2008 with WSS 3.0 sp2 Visual Studio 2008 and use of Dev Express controls in a plain ASP.NET environment without any SPx....... features enabled/activated since I am creating (at least trying to create ) my own webPart features manually. For the purposes of this exercise I also directly copied the DevExpress directory as extracted from the DevExpressSharepointWSS_GAC.wsp. By the way what's the differnece of the DevExpressSharepointWSS_GAC.wsp compared to DevExpressSharepointWSS.wsp. They should be identical as far as this functionality is concerned, right?

                                And please do not forget that I am not using 10.1. My version is 9.3.4. Is there any chance that the relevant assemblies and the codebehinds differ?

                                Thank you once more

                                0

                                Hello Velti,

                                Thank you for the additional information. I see that the popup control is shown correctly now. To answer the other question, I believe I will need some time too :(
                                Please accept my apologies for a possible delay.

                                Thanks,
                                Vest

                                0

                                Hello Velti,

                                The HtmlEditor is an instance of the testdevUI2.MyHtmlEditor class, not SPxHtmlEditor. That is why this code (HtmlEditor as SPxHtmlEditor) will always return NULL values. You should change it to the MyHtmlEditor type in the place where you access the SPxHtmlEditor type. The code for that can be taken from the SPxHtmlEditor.

                                We've modified required files so they work with the image uploading. Please take a look at the attachment.

                                devcontrol.ascx.cs - updated file from the c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\testdev\ folder;
                                InsertImageForm.ascx.cs - updated file from the c:\Inetpub\wwwroot\wss\VirtualDirectories\80\resources\DevExpress\ASPxHtmlEditorForms folder;

                                p.s. paths are taken from our SharePoint server

                                You can adapt them for your task.

                                Thanks,
                                Vest

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners