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

How to work with Rad Editor in custom web part? I'm stuck...

14 Answers 212 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 14 Nov 2011, 10:04 PM
Hope you guys can help.

I need to use the Rad Editor control in a custom Sharepoint 2010 web part which also contains a whole application with multiple views. I can't use the web part version of Rad Editor, it has to be the .NET control. I tried doing some searches for instructions on how to do this in a Visual Studio 2010 Visual Web Part solution (which is what this application is), but cannot find anything on how to setup and configure the Rad Editor so I can work with it in my layout in the IDE.

When I try to drop the Rad Editor control into a DIV on my web part surface (in design mode), I get a simple tag for the control and (in the display view) an error saying "Error Creating Panel: Could not find file 'C:\...\...\web.config'. Well, at design time, I don't have a web.config. So what am I to do?

Can someone please help - with steps and configuration settings - so I can stay on track with the project? The Rad Editor is the reason we chose Telerik for this project in the first place.

Thanks for all help (and snippets) in advance!
A

14 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 04:38 PM
Can anyone chime in on this? I'm working on a critical path project and this has me at a roadblock. Any and all help is very much appreciated. If someone can point me to a step by step tutorial to do what I'm needing to do, that's great too.
0
Accepted
Rumen
Telerik team
answered on 15 Nov 2011, 04:46 PM
Hi Alex,

When It comes to SharePoint 2010, we always recommend using of the specially designed RadEditor for SP2010. What you need to do is install RadControls for SP2010 (review this article http://www.telerik.com/help/aspnet-ajax/moss-installing_radeditor__radgrid_web_parts_on_sharepoint_2010.html ). Then you can use the SPRadEditor class, which is defined in the Telerik.SharePoint name space of the RadEditorSharePoint assembly. RadEditor for SharePoint is based on the regular RadEditor for ASP.NET AJAX, but it is customized to better fit in this environment.

If you decide to use the regular RadEditor for ASP.NET AJAX in SharePoint you should note that its FileBrowser dialogs will not work with the SP2010 libraries. RadEditor for SP2010 has specially designed content provider, which allows you to work with SharePoint's libraries.

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
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 04:59 PM
We purchased the Dev license + support ($999) for the project. Does this include the Sharepoint versions you refer to? If so, where can I get the .wsp installer? If not, what do we need to do to get that version?

Also, can we install the wsp on our sandbox, TEST, and PROD farms? Please advise.

Thanks for your help.
A
0
Accepted
Rumen
Telerik team
answered on 15 Nov 2011, 05:11 PM
Hello Alex,

Yes, you can download the SharePoint installations from your account. See the following video: http://screencast.com/t/lO8cQun7ylc.

You can find installation instructions in the help:

Unfortunately Telerik Sharepoint Acceleration Kit does not support Sharepoint solutions in Sandbox environment because of problem with the integration of controls implementing IScriptControl interface in the sandbox model. We have contacted Microsoft several times without much luck so far.

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
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 05:13 PM
You've been most helpful. I have installed the software and will get back to work!

Figures though... my company blocks all video content... ugh <head smack>!
0
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 05:54 PM
Can't find the SPRadEditor. I installed the Sharepoint Kit (the automatic option) and created a reference to the Telerik.Ajax.Sharepoint assembly in the GAC. Per the docs I can find about programmatically adding these controls, it should be there - but it isn't.

There is no SPRadEditor class in the Telerik.Ajax.Sharepoint namespace... There are several other options like: SPRadGrid, SPRadListView, and SPRadScheduler... but no SPRadEditor.

I don't see a RadEditorSharePoint namespace either.

What am I missing? Thanks!
0
Accepted
Benjamin
Top achievements
Rank 1
answered on 15 Nov 2011, 06:20 PM
Hi Alex,

you need to use the RadEditorSharePoint assembly and the namespace Telerik.SharePoint.

Greetings Ben.
0
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 06:22 PM
Found it in the GAC. I was expecting "Telerik..." but it has no prefix on the namespace. Thanks Ben.

UPDATE:
There it is! Thanks much for the support.

Is there a good doc on formatting and configuration from a programmatic perspective?

Thanks again.
A
0
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 07:10 PM
Ben (and anyone else who might be able to help)...

Okay, so I finally got the RadEditorSharePoint reference setup and I'm able to see the Telerik.SharePoint namespace where the SPRadEditor control is... now, I'm adding the control to my custom webpart at run time, but getting an error during debug. The control only renders a white box that cannot be interacted with.

Here's the error (there is a succession of these, all the same):
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type

Here's my code to add the control on a button click (just trying to get the thing to come up right now):
this.PnlEditor.Controls.Add(new SPRadEditor() { ID = "SpRadEditor", Width = Unit.Percentage(100) });

Seems like this should be very simple to do. What am I missing now? Is there a decent guide that provides a tutorial for doing this? Thanks again for all of your support.
A

0
Alex
Top achievements
Rank 1
answered on 15 Nov 2011, 08:47 PM
I found the issue causing the runtime error!

My custom webpart is wrapped in an update panel. The SPRadEditor throws a fit if I try to use it within the update panel. Once I took that off, it all works great.

This is a bug - you guys should take a look at how to allow the SPRadEditor to run within an update panel.

Hope this helps someone.
A
0
Banjamin
Top achievements
Rank 1
answered on 21 Aug 2012, 02:02 PM
What does it mean in practice - that sandbox solutions are not supported?

I have isue with buttons and empty style dropdowns. After every page load with RadEditor, i receive "No implementation for converting split button xxx into an accessible tool" error.

Instead of this error, buttons works, but style / fontface and font size lists are empty despite of settings in xml file...
I saw that someone turned off the feature for "accessible UI" to fix it - but i NEED this editor working... :D
 
Any ideas?
0
Stanimir
Telerik team
answered on 24 Aug 2012, 08:54 AM
Hello,

What does it mean in practice - that sandbox solutions are not supported? - RadContorls for ASP.NET AJAX and by the way all ASP.NET AJAX controls will not work in sandbox solutions.


Could you provide me with a sample webpart, which I can deploy on our test server and review the issues? It will be of great help in order to debug the problem and help you further.

Greetings,
Stanimir
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
Banjamin
Top achievements
Rank 1
answered on 24 Aug 2012, 11:31 AM
Well, i just wanted to use RadEditor. But as i see, there are unexpected errors related to 3 buttons.
Is there any chance to fix it or i just have to give up?


0
Stanimir
Telerik team
answered on 24 Aug 2012, 01:28 PM
Hello,

If you are pointing to the problem that in the Accessible RadEditor for Sharepoint 2010 all split buttons different than "Undo", "Redo", "InsertTable" alert "No implementation for converting split button " + name + " into an accessible tool" message. What you can do is add this javascript in the page where the Accessible RadEditor is loaded:
Telerik.Web.UI.AccessibleRadEditorBase.prototype.replaceSplitButton= function(tool, editor)
{
        var name = tool.get_name();
        if (name == "Undo" || name == "Redo" || name == "InsertTable")
        {
            //Only do a button for those!
            return this.replaceButton(tool, editor);
        }
}

this will overwrite the default behavior and on alert will appear.



Greetings,
Stanimir
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
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Rumen
Telerik team
Benjamin
Top achievements
Rank 1
Banjamin
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or