If I try to delete a range containing a table, either via setting a selection and Document.Delete(false) or via Document.Delete(start, end), I get an InvalidCastException:
Unable to cast object of type 'Telerik.Windows.Documents.Layout.TableLayoutBox' to type 'Telerik.Windows.Documents.Layout.ParagraphLayoutBox'.
at Telerik.Windows.Documents.Model.RadDocument.DeleteParagraphsInRangeInternal(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4530
at Telerik.Windows.Documents.Model.RadDocument.DeleteRangeInternal(SelectionRange range) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4574
at Telerik.Windows.Documents.Model.RadDocument.DeleteRange(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 1221
Are there any alternatives or workarounds? Or am I doing something wrong?
Unable to cast object of type 'Telerik.Windows.Documents.Layout.TableLayoutBox' to type 'Telerik.Windows.Documents.Layout.ParagraphLayoutBox'.
at Telerik.Windows.Documents.Model.RadDocument.DeleteParagraphsInRangeInternal(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4530
at Telerik.Windows.Documents.Model.RadDocument.DeleteRangeInternal(SelectionRange range) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4574
at Telerik.Windows.Documents.Model.RadDocument.DeleteRange(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 1221
Are there any alternatives or workarounds? Or am I doing something wrong?