This question is locked. New answers and comments are not allowed.
Nikolaj Rasmussen
Top achievements
Rank 1
Nikolaj Rasmussen
asked on 19 Sep 2005, 02:08 PM
Hey,
I've got a problem sps-editor, the test webpart works perfect, but when i add one my self everything works even within the image-manager about seeing images/documents, but the upload tab isn't working on my setup.
No matter what upload-property i set (ex. MaxImageSize) the result in the popup is 0kb?!
Best Regards
Nikolaj Rasmussen
I've got a problem sps-editor, the test webpart works perfect, but when i add one my self everything works even within the image-manager about seeing images/documents, but the upload tab isn't working on my setup.
No matter what upload-property i set (ex. MaxImageSize) the result in the popup is 0kb?!
Best Regards
Nikolaj Rasmussen
5 Answers, 1 is accepted
0
Hi Nikolaj,
The issue you are getting is very strange. This capability of r.a.d.editor SharePoint Edition is supposed to work out of the box. We have tested it many times and setting the MaxImageSize property of r.a.d.editor (in ContentEditor.aspx) always worked as expected.
How do you set the MaxImageSize? Is it by editing ContentEditor.aspx or via config file?
We shall need some additional information in order to provide a solution.
Expecting your input,
Albert
the telerik team
The issue you are getting is very strange. This capability of r.a.d.editor SharePoint Edition is supposed to work out of the box. We have tested it many times and setting the MaxImageSize property of r.a.d.editor (in ContentEditor.aspx) always worked as expected.
How do you set the MaxImageSize? Is it by editing ContentEditor.aspx or via config file?
We shall need some additional information in order to provide a solution.
Expecting your input,
Albert
the telerik team
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 21 Sep 2005, 07:47 AM
Oh, its has nothing to do with the test-webpart.
That one works perfectly.
It is on my own aspx-page, right now its really simple :)
And yes, the aspx is running in the sps-context. There is no problems added images from the "Image Library".
I've got the normal none-sps-editor installed earlier, but is uninstalled and manually erased every RadEditor.dll on the disk, and then like it says in the helpfile
stsadm -o addwppack -force -url http://mylocalurl -filename c:\RadWebParts.cab
stsadm -o addwppack -force -url http://mylocalurl -globalinstall -filename c:\RadWebParts.cab
<%@ Page language="c#" Codebehind="dammit.aspx.cs" AutoEventWireup="false" Inherits="dammit.WebForm1" %>
<%@ Register TagPrefix="rade" Namespace="Telerik.WebControls" Assembly="RadEditor, Version=5.5.0.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<rade:RadEditor id="reDescription" Runat="server" Width="100%" Height="240px" SaveInFile="False"
Editable="True" MaxImageSize="1048576"></rade:RadEditor>
</form>
</body>
</HTML>
Which resulted in "Max file size allowed 0KB " :(
That one works perfectly.
It is on my own aspx-page, right now its really simple :)
And yes, the aspx is running in the sps-context. There is no problems added images from the "Image Library".
I've got the normal none-sps-editor installed earlier, but is uninstalled and manually erased every RadEditor.dll on the disk, and then like it says in the helpfile
stsadm -o addwppack -force -url http://mylocalurl -filename c:\RadWebParts.cab
stsadm -o addwppack -force -url http://mylocalurl -globalinstall -filename c:\RadWebParts.cab
<%@ Page language="c#" Codebehind="dammit.aspx.cs" AutoEventWireup="false" Inherits="dammit.WebForm1" %>
<%@ Register TagPrefix="rade" Namespace="Telerik.WebControls" Assembly="RadEditor, Version=5.5.0.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<rade:RadEditor id="reDescription" Runat="server" Width="100%" Height="240px" SaveInFile="False"
Editable="True" MaxImageSize="1048576"></rade:RadEditor>
</form>
</body>
</HTML>
Which resulted in "Max file size allowed 0KB " :(
0
Hi Nikolaj,
If you are using the RadEditor.dll shipped with r.a.d.editor SharePoint Edition you should be aware that this version is slightly different from the original non-SPS implementation and hence the 0 byte issue. Resource dialogs in SPS editor are bound to SharePoint document libraries and work only if used through the web part. You should use the following code to make it work:
If you are using the RadEditor.dll shipped with r.a.d.editor SharePoint Edition you should be aware that this version is slightly different from the original non-SPS implementation and hence the 0 byte issue. Resource dialogs in SPS editor are bound to SharePoint document libraries and work only if used through the web part. You should use the following code to make it work:
private void Page_Load(object sender, EventArgs e)
{
reDescription.DialogParameters.Clear();
ParameterCollection imageArguments = new ParameterCollection();
imageArguments.Add(new Parameter("ThumbSuffix", reDescription.ThumbSuffix));
imageArguments.Add(new Parameter("MaxImageSize", reDescription.MaxImageSize.ToString()));
imageArguments.Add(new Parameter("AllowThumbGeneration", reDescription.AllowThumbGeneration.ToString()));
reDescription.DialogParameters.Add("SharePoint/ImageManager", imageArguments);
}
Greetings,
Albert,
the telerik team
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 23 Sep 2005, 11:22 AM
Hi Albert,
Dont know if i should create another thread for this.. because suddenly the image manager-popup displays...
"Could not load type 'Telerik.WebControls.Dialogs.Dialog'."
I'm pretty sure I havn't done anything related to the editor, hmm.
The error isn't related to the last code in the page_load you provided... or i didn't check if the image manager worked like its used to before i tested the code... but its still there when its remove.
I've tried to iisreset/reinstall the cab-file through stsadm/rebooted, you name it... this is just so wierd.
I just saw that the issue isnt related to the project at all, because another sps-webpage doesn't work either, but the test-webpart from you guys still works perfectly.
Dont know if i should create another thread for this.. because suddenly the image manager-popup displays...
"Could not load type 'Telerik.WebControls.Dialogs.Dialog'."
I'm pretty sure I havn't done anything related to the editor, hmm.
The error isn't related to the last code in the page_load you provided... or i didn't check if the image manager worked like its used to before i tested the code... but its still there when its remove.
I've tried to iisreset/reinstall the cab-file through stsadm/rebooted, you name it... this is just so wierd.
I just saw that the issue isnt related to the project at all, because another sps-webpage doesn't work either, but the test-webpart from you guys still works perfectly.
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 23 Sep 2005, 11:53 AM
Hi Albert...
I've fixed the problem.. i just erased every radcontrols-folder on the disk.... and install the cab file, to get the test-webpart to work :)
And copied another copy of the radcontrols-folder to my location..
Btw, the page_load-fix worked perfectly... thx \o/ :D
I've fixed the problem.. i just erased every radcontrols-folder on the disk.... and install the cab file, to get the test-webpart to work :)
And copied another copy of the radcontrols-folder to my location..
Btw, the page_load-fix worked perfectly... thx \o/ :D