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

Ordered and Unordered list functionality issues

14 Answers 123 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ola Karlsson
Top achievements
Rank 1
Ola Karlsson asked on 04 Jan 2011, 05:49 AM
Hi there,

We're having a some problems with some of the "Telerik Editor" functionality, we're using the RichTextBox with the RadRichTextBoxRibbonUI.
Our solution is now in testing and our client has raised a couple of issues, I don't seem to be able to find a solution for.

The problems are the following:
  • If I click the Bullet/Ordered list icon, to go into "list mode", I then start typing, however there's no bullet or number appearing, even though the ribbon icon is still showing that it's been clicked. Even if I hit enter to do a line break, nothing appears.
    It seems the only way to get a list going is to select some text and then click the list icons. 
  • Page justification of list, creating a list ordered or unordered, then selecting it and clicking the center text justification, only moves the text, not the bullets/numbers. If you do the same in for example MS Word or the equivalent Telerik ASP.NET control (RadEditor), it centers the list graphics as well. 
  • List indentation, creating a list in a Telerik ASP.NET RadEditor or in some other program, for example MS Word, automatically indents the list by a certain amount, this isn't happening on the Silverlight version.
I tested these on the public Telerik Demo (http://demos.telerik.com/silverlight/#RichTextBox/MSWord) and it's the same there. Is there any solution to these problems?

[Edit]
I've now come across another issue, on one of my controls I use the following HtmlDataProvider_SetupDocument event to clear and reset some font properties.
private void HtmlDataProvider_SetupDocument(object sender, Telerik.Windows.Documents.FormatProviders.SetupDocumentEventArgs e) {
 
           foreach (Telerik.Windows.Documents.Model.Span span in e.Document.EnumerateChildrenOfType<Telerik.Windows.Documents.Model.Span>()) {
               span.ClearValue(Telerik.Windows.Documents.Model.Span.FontSizeProperty);
               span.ClearValue(Telerik.Windows.Documents.Model.Span.FontFamilyProperty);
               span.ClearValue(Telerik.Windows.Documents.Model.Span.FontStyleProperty);
 
               span.FontStyle = FontStyles.Normal;
               span.FontFamily = new FontFamily("Arial");
               span.FontSize = 11;
               span.ForeColor = Colors.Gray;
 
           }
 
       }

This works ok for most of the text, however it does not effect the numbers in numbered lists, resulting in all gray Arial 11 text, but black Times New Roman 12 on the numbers in the list.

Anyone have thoughts on how I can fix this?

Thanks,
Ola Karlsson

14 Answers, 1 is accepted

Sort by
0
Hud
Top achievements
Rank 1
answered on 04 Jan 2011, 11:59 AM
Hi,

Also a big fan of the RadRichTextBox, but also having some issues with Bullets and Numbered Lists.

When the user highlights a few lines, then click on the RadRichTextBoxRibbonUI button to make it a Bullet (or a Numbered List), the RadRichTextBox does the right thing - it displays the highlighted lines with the appropriate bullets or numbers. However, when I look at the serialized XAML (using your XAML FormatProvider), the Bullets or Numbered List instruction is not present in the XAML. Obviously this means that when the application stores the XAML, and later retrieves it and displays it, the user now complains that their formatting (bullets / numbered lists) is gone.

[Edit] - Further testing showed that if the user formats a few lines as Bullets / Numbered Lists, and then makes _further_ changes to other parts of the document, then everything works as it should... The problem only occurs if the few lines are formatted as Bullets / Numbered Items, and then exported to xaml immediately afterwards.

I've tested the rest of the formatting (fonts, sizes, alignments, colours, tables, images, etc), and everything serializes correctly - the only problem is the Bullets and Numbered Lists...

I'm currently using:
Assembly Telerik.Windows.Controls.RichTextBoxUI, Version 2010.3.1129.1040
Assembly Telerik.Windows.Documents, Version 2010.3.1129.1040
Assembly Telerik.Windows.Documents.FormatProviders.Xaml, Version 2010.3.1129.1040

Thanks,

-Louis de Klerk

 

 

0
Iva Toteva
Telerik team
answered on 07 Jan 2011, 11:10 AM
Hi Ola Karlsson, Louis de Klerk,

Thank you both for the detailed explanation of the issues you have encountered.
@Ola:
As for the first two items, we have fixed these issues. Unfortunately, it is quite unlikely that the fixes make it into the Service Pack. However, they should be visible in the first LIB after that.
Regarding the third and fourth issues, these features are currently not supported, but are logged for revision with regard to Q1. 

@Louis de Klerk:
As we have answered you in the support ticket you opened, this bug is also being addressed and a fix is expected in the first LIB after Q3 SP1.

If you have any other questions, do not hesitate to contact us again.

All the best,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Darren
Top achievements
Rank 1
answered on 07 Feb 2011, 07:47 PM
Hello;

We are experiencing an issue that i'm hoping will be addressed in an update regarding lists.

No support for multi level lists, ie:

1. bullet 1
     a. point a in bullet 1
     b. poing b in bullet 1
2. bullet 2

I would like to keep using the Telerik Silverlight editor, but this is a blocker for us.

Thanks for any suggestions.

Darren
0
Boby
Telerik team
answered on 08 Feb 2011, 10:35 AM
Hi Darren,
We are actively working on "multilevel lists" feature, and hopefully it will be included in our next version - Q1 2011, scheduled for mid-March 2011.

Don't hesitate to contact us if you have other questions.


Greetings,
Boby
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
jbaird
Top achievements
Rank 1
answered on 11 Aug 2011, 09:19 PM
When you say Q3 sp1, do you mean 3 quarter 2011?  We need this functionality of ordered lists/ unordered lists appearing in the xaml stream also.  Is there a workaround?

0
Iva Toteva
Telerik team
answered on 12 Aug 2011, 08:24 AM
Hi Jbaird,

By Q3 SP1 we meant 2010 Q3 SP1. 
With the latest version of the control - Q2 2011, everything revolving multilevel lists works as expected. You can test that in our online demo.
We also have a blog post about multilevel lists, which you can check at http://blogs.telerik.com/blogs/posts/11-04-14/revealing_hidden_features_of_multilevel_lists_in_radrichtextbox_for_silverlight_wpf.aspx.

All the best,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
jbaird
Top achievements
Rank 1
answered on 12 Aug 2011, 01:10 PM
I am using the Q1 - 2011 RadRichTextBox and Ribbon UI control bound together.  When I highlight a list of text and press the ordered list button, the list is shown in the editor; however, the document changed event does not fire and the xaml stream (for saving) does not include any tags indicating that the list should be ordered.  The changes are not there and are not saved to the database.

What do I need to do to get this working as you suggest it does?

0
Iva Toteva
Telerik team
answered on 12 Aug 2011, 01:45 PM
Hello Jbaird,

We were not able to reproduce the issue on our end using Q1 2011 (2011.1.315). Q1 2011 SP1 (2011.1.419) and the latest version (Q2 2011 - 2011.2.712) also worked as expected.
Please find attached a demo of two rich text boxes bound by XAML data providers. You can see how adding lists in the rich text box on the left using RadRichTextBoxRibbonUI or the SelectionMiniToolBar causes the document of the rich text box on the right to be updated accordingly. If you subscribe to the DocumentContentChanged event, you will see that it is also fired accordingly.
The DocumentChanged event, however, is only fired when the Document property of RadRichTextBox changes, e.g. by selecting "New Document" from the application menu.
If you are not able to solve the issue, we would appreciate a demo of yours, so that we can investigate what is wrong.

All the best,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Mark
Top achievements
Rank 1
answered on 18 Sep 2012, 06:32 PM
Were these fixes implemented in the WPF version of the RadRIchTextBox?. I'm experiencing  the same issues with 2012Q2 (607) build.
0
Boby
Telerik team
answered on 21 Sep 2012, 07:48 AM
Hello Mark,
Could describe what are the issues you are experiencing, as there are different ones described in this thread?

Greetings,
Boby
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Christian
Top achievements
Rank 1
answered on 04 Sep 2014, 02:03 PM
Has the multi-level ordered list support from 2011 been implemented?
0
Petya
Telerik team
answered on 05 Sep 2014, 03:14 PM
Hello Christian,

Multilevel lists were introduced in Q1 2011 and are available in all versions of the suite following it. There is a set of predefined multilevel lists and you also have the ability to create your custom list. You can try the feature in our online demos and the List Styles article in the documentation contains more information on the topic.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Christian
Top achievements
Rank 1
answered on 05 Sep 2014, 03:25 PM
Petya,
Thanks for the reply.  The demo you gave me though was Silverlight.
Christian
0
Petya
Telerik team
answered on 08 Sep 2014, 08:15 AM
Hi Christian,

This forum section is regarding RadRichTextBox for Silverlight. If you are using the WPF version ofthe control, all information is also relevant since the code-base for both controls is the same. In case you are using another Telerik component I'd suggest posting your question in the respective forum section.

Regards,
Petya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RichTextBox
Asked by
Ola Karlsson
Top achievements
Rank 1
Answers by
Hud
Top achievements
Rank 1
Iva Toteva
Telerik team
Darren
Top achievements
Rank 1
Boby
Telerik team
jbaird
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Petya
Telerik team
Share this question
or