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

Adding Bulleted list button

3 Answers 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 19 Apr 2011, 08:26 PM
When I add the bulleted list button to the ascx page the button will not show up.  I even added an existing button thinking this version did not support the bulleted button but this did not work.  

 

 

 

<div id="editor" class="input"
    <telerik:RadEditor ID="txtText" runat="server" Height="200px" Width="400px" ToolTip="Enter a body" EnableEmbeddedSkins="false"
        <Tools
            <telerik:EditorToolGroup
                <telerik:EditorTool Name="Bold" /> 
                <telerik:EditorTool Name="Italic" /> 
                <telerik:EditorTool Name="Underline" /> 
                <telerik:EditorTool Name="Cut" /> 
                <telerik:EditorTool Name="Copy" /> 
                <telerik:EditorTool Name="Paste" /> 
                <telerik:EditorTool Name="FontName" /> 
                <telerik:EditorTool Name="FontSize" /> 
                <telerik:EditorTool Name="ForeColor" /> 
                <telerik:EditorTool Name="InsertUnorderedList" /> 
                <telerik:EditorTool Name="Bold" /> 
            </telerik:EditorToolGroup
        </Tools
        <Content
        </Content
    </telerik:RadEditor
</div

 

 

 

 

 

 

 

 


But when I add it in code, it does show up, why? 
if (!IsPostBack)
 {
       EditorToolGroup main = new EditorToolGroup();
       txtText.Tools.Add(main);
       EditorTool InsertUnorderedList = new EditorTool();
       InsertUnorderedList.Name = "InsertUnorderedList";
       main.Tools.Add(InsertUnorderedList);
}

 

 

We want to be able to add it in the ascx markup.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Apr 2011, 12:34 PM
Hello Bob,

You should not experience this problem. For your convenience I prepared a sample working project which demonstrates how to add an InsertUnorderedList button to RadEditor toolbar inline via a user control. You can see my test in the following video: http://screencast.com/t/NmLuTIcq5.

Greetings,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Bob
Top achievements
Rank 1
answered on 20 Apr 2011, 03:40 PM
Thanks for the demo and I will try a small project as you did.
I did notice that when I select design mode on the ascx page, the RadEditor is not displayed and shows the following error:
Error Creating Control - txtText
Failed to create designer 'Telerik.Web.UI.RadEditor, Telerik.Web.UI, Version 2009.1.527.35, Culture=neutral,
PublicKeyToken=121fae78165a3d4'
I am sure this is a reference issue...can you provide me with some articles or help with removing this error?

Thanks, Bob
0
Rumen
Telerik team
answered on 20 Apr 2011, 03:55 PM
Hello Bob,

This information is available at the end of this help article: General Troubleshooting

Design-time error on a page using RadControls after upgrading to Q1 2009:

Error Creating control - ControlName

Failed to create designer "Telerik.Web.UI.ControlName..."

You should copy the Telerik.Web.UI.dll and Telerik.Web.Design.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.

If you experience any problems, my recommendation is to test the latest available version 2011.1.413 of RadControls for ASP.NET AJAX Q1 2011 SP1.

Kind regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Bob
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Bob
Top achievements
Rank 1
Share this question
or