User is not able to select the current date wen Date Picker content control is used.
Select another date and then the current one as a workaround.
In my usage scenario, I want to allow the users to do some specific actions like changing the font or inserting a table row in those restricted areas.
My current implementation is to modify the source code of RadRichTextBox, expose RespectDocumentProtection and RespectNonDeletableRanges, and temporarily set these properties to false before performing modifications in those restricted areas.
Currently, the properties are available in RadDocumentEditor only.
If there is an empty cell with a permission range and you go to it by pressing the Tab key from the previous cell and then start typing it removes the annotation range. If the cell with the permission range is not empty and the same technique is used there is an InvalidOperationException thrown with the message: "Selection contains uneditable ranges".
Here is a workaround:
this.radRichTextBox.CommandExecuted += this.RadRichTextBox_CommandExecuted;
private void RadRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e)
{
if (e.Command is TabForwardCommand)
{
DocumentPosition caret = this.radRichTextBox.Document.CaretPosition;
if (caret.IsPositionInsideTable)
{
DocumentSelection selection = this.radRichTextBox.Document.Selection;
DocumentPosition start = selection.Ranges.First.StartPosition;
DocumentPosition end = selection.Ranges.Last.EndPosition;
Inline currentInline = start.GetCurrentInline();
if (currentInline is PermissionRangeStart)
{
start.MoveToNext();
}
Inline previousInline = end.GetPreviousInline();
if (previousInline is PermissionRangeEnd)
{
end.MoveToPrevious();
}
this.radRichTextBox.Document.Selection.SetSelectionStart(start);
this.radRichTextBox.Document.Selection.AddSelectionEnd(end);
}
}
}
First, you need to subscribe to the CommandExecuted event. Then change the selection after a TabForwardCommand to exclude the PermissionRangeStart and PermissionRangeEnd elements. Your workaround also works, so there is no need to change it.
foreach (Span span in paragraphCopy.EnumerateChildrenOfType<Span>())
{
if (string.IsNullOrEmpty(span.Text))
{
span.Text = " ";
}
}
RichTextBox: Exception when loading a table with a specific layout in R2 2022
This works with R1 2022 SP1
No visual cue when image deleted or inserted when "Track changes" is activated.
When inserting an image with the Track Changes option toggled, the image should be underlined with red and it isn't. When deleting an image with Track Changes on, it is also not crossed with red. In both cases, the only mark that a change was made is the vertical line on the left.
Implement the export of notes (footnote, endnote) in the PdfFormatProvider of the RadRichTextBox.