htmlString = htmlString.Replace("<p>", string.Empty).Replace("</p>", string.Empty);
In a specific scenario when there are many tables in a document the following case leads to NullReferenceException.
- Select few tables
- while mouse is still selecting tables use keyboard's Ctrl + A
- Leave the mouse
- use Ctrl + A again (this time everything is selected)
- hit Delete
- Object reference not set to an instance of an object is thrown
This functionality is supported by MS Word:
A possible workaround could be to enclose the RadSpreadsheet as a UI element. More information could be found in the InlineUIContainer help article.
Hello,
We found a problem when using the radrichtextbox control. When radrichtextbox is enabled to cancel input, error will be reported using the sougou Chinese input method. This problem will not occur in the English input method. Please help solve it. Thank you very much.
private void radRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e)
{
if (e.Command is DeleteCommand && imageToDelete!=null)
{
this.radRichTextBox.Document.Selection.Clear();
this.radRichTextBox.Document.Selection.AddDocumentElementToSelection(imageToDelete);
this.radRichTextBox.Delete(true);
this.imageToDelete = null;
}
}
private ImageInline imageToDelete;
void radRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
if (e.Command is DeleteCommand)
{
var selectedBoxes = this.radRichTextBox.Document.Selection.GetSelectedBoxes().ToList();
if (selectedBoxes.Count() == 2 && selectedBoxes[0].AssociatedInline is FieldRangeStart && selectedBoxes[1].AssociatedInline is ImageInline)
{
imageToDelete = selectedBoxes[1].AssociatedInline as ImageInline;
}
}
}
While typing in RadRichtextBox using Korean (Microsoft IME) keyboard "space" or "Enter" repeats the last typed character.
Workaround: Create a custom caret (example for custom caret) and override the EnableAsynchronousTextInsertion property so you can set it to false.
When the LayoutMode is set to Flow the size of the numbers is larger than expected.
This behavior is not observed in LayoutMode="Paged".
Appling the following command changing the margin but doesn't change the position of the DocumentRuler:
this.radRichTextBox.ActiveDocumentEditor.ChangeSectionPageMargin(new Padding((int)Unit.InchToDip(3.0)));
The result:
MethodInfo method = typeof(RadRichTextBoxRulerController).GetMethod("OnSeparatorsChanged", BindingFlags.NonPublic | BindingFlags.Instance);
method.Invoke(this.ruler.Controller, null);
<telerik:DocumentRuler x:Name="ruler">