radeditor bullet list does not work

13 posts, 0 answers
  1. praveen
    praveen avatar
    4 posts
    Member since:
    Dec 2010

    Posted 01 Aug 2011 Link to this post

    When I enter text in the radeditor and select that text and click the Numbers and Bullets menu in the toolbar.
    My text does not appears to be bulleted and also numbers does not appears before them.

    How can I achieve to display numbers and bulleted list in the radeditor?

  2. Abhishek
    Abhishek avatar
    45 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2011 Link to this post

    Hi praveen,

    Can you Please Post your code. So that i can help you to solve your issue.

    Thanks,
    Abhishek K
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Aug 2011 Link to this post

    Hello Praveen,

    Check the following demo which implements the same functionality.
    Editor / Default Settings .

    Thanks,
    Shinu.
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 03 Aug 2011 Link to this post

    Hi Praveen,

    The problem is most likely due to some global CSS style for OL, UL elements that sets the padding and margin of the bulleted lists to 0px.

    Please, review your css styles and see which one is overriding the default space between the bulleted lists. You should search for class similar to this one:

    OL, UL
    {
        padding: 0px;
        margin: 0px;
    }

    To fix the problem, just set the CssFiles property as shown in this help article: Content Area Appearance Problems. Therefore the editor will not pick up the CSS classes from the page.


    Best wishes,
    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.

  6. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 02 Dec 2014 Link to this post

    Hi, when i rendering text into pdf format from rad editor, i didn't get space between bullets and text in bulleted list, Please post the answer..
  7. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 04 Dec 2014 Link to this post

    Hello Anusha,

    Could you please provide more details about the situation? Some HTML code snippets used and snapshots of the resulted PDF will also be helpful.

    You can also check if this issue is reproducible with this online demo and provide the exact steps to reproduce, so that I could be able to recreate the scenario.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 04 Dec 2014 Link to this post

    Hi,

    I had a rad editor and i have bulleted list in that, when i convert that data to pdf format i didn't get space between Bullets and text in pdf.
    Please check the attached file
  9. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 04 Dec 2014 in reply to anusha Link to this post

    Hi, Please check attached file
  10. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 04 Dec 2014 Link to this post

    Hello Anusha,

    I tested the same scenario, based on the description, but to no avail. You can examine this screencast.

    The created list on my end is generated properly in PDF and I can only make assumptions about the missing spaces. In normal scenarios, list item do not have any additional spaces, unless are customized.   

    If there is some further custom HTML or CSS code, please provide it so that I could test further with it.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  11. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 04 Dec 2014 Link to this post

    Hi,
     we are using string builder in which we have html content, we converted html to pdf format by using pdf writer in which in my rad editor i have space between bullets and text in the bulleted list, but i didn't get the space between bullet and text in the pdf file. please provide relevant code. 
  12. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 05 Dec 2014 in reply to anusha Link to this post

     Hi lanko,
         i am using this code for pdf download 

        List<IElement> htmlElements = HTMLWorker.ParseToList(new StringReader(Convert.ToString(sb)), null);
                    Document doc = new Document(PageSize.A4, -2, 0, 20, 0);

                    PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream(FolderPath + profileID_New[1] + ".pdf", FileMode.Create));

                    doc.Open();
                    // add the IElements to the document
                    for (int i = 0; i < htmlElements.Count; i++)
                    {
                        // cast the element
                        IElement htmlElement = ((IElement)htmlElements[i]);
                        doc.Add(htmlElement);
                    }
                    
                    // close the document
                    doc.Close();
  13. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 05 Dec 2014 Link to this post

    Hello Anusha,

    I believe this is a matter relevant to the HTML code implemented and not the way it is inserted into the RadEditor. Therefore, as already suggested, you can just provide a simple HTML example with which to examine locally.

    Note, that the snapshot of the resulted PDF file does not provide enough information for me to examine the case.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  14. anusha
    anusha avatar
    4 posts
    Member since:
    Dec 2014

    Posted 05 Dec 2014 Link to this post

    Hello lanko,

    My html code of bulleted list looks like this:


    <div><ul>    <li>anusha</li>    <li>Lakshmi</li>    <li>Vinod</li></ul></div>

    Thanks,
    Anusha
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017