Hello Ben,
Currently, RadRichTextBox does not support nested lists. This feature is on our to-do list for Q3. However, you can simulate the appearance of nested lists programatically. The code below will create a document basically for what you want, unfortunately currently the list support is limited to numbers and bullets but no letters.
void
CreateParagraph(Section section, DocumentListBase list,
int
leftIndent,
string
text)
{
Paragraph paragraph =
new
Paragraph();
section.Paragraphs.Add(paragraph);
list.AddParagraph(paragraph);
paragraph.LeftIndent = leftIndent;
paragraph.Inlines.Add(
new
Span(text));
}
void
CreateTestDocument()
{
RadDocument document =
new
RadDocument();
Section section =
new
Section();
document.Sections.Add(section);
NumberedList list1 =
new
NumberedList();
NumberedList list2 =
new
NumberedList();
NumberedList list3 =
new
NumberedList();
CreateParagraph(section, list1, 0,
"Introduction"
);
CreateParagraph(section, list2, 20,
"Location"
);
CreateParagraph(section, list3, 40,
"Mountains"
);
CreateParagraph(section, list3, 40,
"In a Valley"
);
CreateParagraph(section, list2, 20,
"Weather"
);
CreateParagraph(section, list3, 40,
"Cloudy"
);
CreateParagraph(section, list3, 40,
"Hot"
);
CreateParagraph(section, list3, 40,
"Humid"
);
CreateParagraph(section, list1, 0,
"Main Body"
);
}
Let us know if you need further assistance.
Regards,
Ivailo
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items