Adding Bulleted list button

4 posts, 0 answers
  1. Bob
    Bob avatar
    4 posts
    Member since:
    Sep 2010

    Posted 19 Apr 2011 Link to this post

    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.

     

     

     

  2. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 20 Apr 2011 Link to this post

    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.

  3. Bob
    Bob avatar
    4 posts
    Member since:
    Sep 2010

    Posted 20 Apr 2011 Link to this post

    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
  4. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 20 Apr 2011 Link to this post

    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.

Back to Top