When "rFonts" is set in docDefaults:
<w:styles>
<w:docDefaults>
<w:rPrDefault>
<w:rPr>
<w:rFonts w:ascii="Verdana" w:eastAsia="Times New Roman" w:hAnsi="Verdana" w:cs="Verdana"/>
...
</w:rPr>
</w:rPrDefault>
and partially in the local run properties:
<w:r>
<w:rPr>
<w:rFonts w:cs="Times New Roman"/>
...
</w:rPr>
<w:t>Text</w:t>
</w:r>
A wrong font is applied.
Expected: Verdana
Actual: Times New Roman
When inserting a content control (structured document tag) into an empty RadDocument using one of the overloads of the InsertStructuredDocumentTag method accessible from RadRichTextBox and RadDocumentEditor, a NullReferenceException is thrown.
Workaround: Invoke the EnsureDocumentMeasuredAndArranged method before inserting the content control:
document.EnsureDocumentMeasuredAndArranged();
RadDocumentEditor editor = new RadDocumentEditor(document);
editor.InsertStructuredDocumentTag(SdtType.CheckBox);
Hi Telerik Support
We use your Telerik PDF-Viewer since your last Version "UI for WPF R1 2021" which supports Type 3 fonts.
Now the version runs productive by our customers. But after a day, they found some special PDFs that doesn't work quite right with your PDF-Viewer.
In the appendix you will find the PDf-Files as samples for the bugs that i'm describing.
Because of data privacy, the PDF-Files are cutted and cropped.
Also a demo project is appended (It could also be reproduced with the demo Progress Telerik WPF UI for th PDF-Viewer).
First Problem: Blank Page
Hint: It seems that only a few PDF-Files from a specific program seems to be a problem.
Second Problem: Displaying data delayed
I would be glad for a quick possible solution for our customer.
Best regards
Serge Schoop
The class Telerik.Windows.Data.QueryableExtensions has a static dictionary "providerIsEntityFrameworkCore"
That dictionary will hold a reference (forever) to a collection that is set as Source for the GridView.
Reason is that non IQueryable-types will be wrapped in a EnumerableQuery<T> that will return itself as the provider (https://referencesource.microsoft.com/#System.Core/System/Linq/SequenceQuery.cs,44), encapsulating the reference.
This must be something introduced recently.
When you remove a filter descriptor via the X button in the UI a NullReferenceException is printed in the Visual Studio Output pane as a data binding error.
System.Windows.Data Error: 17 : Cannot get 'LogicalOperator' value (type 'FilterCompositionLogicalOperator') from 'CompositeFilter' (type 'CompositeFilterViewModel'). BindingExpression:Path=CompositeFilter.LogicalOperator; DataItem='FilterViewModel' (HashCode=15035499); target element is 'RadToggleButton' (Name='PART_CompositeFilterLogicalOperatorToggleButton'); target property is 'IsChecked' (type 'Nullable`1') TargetInvocationException:'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.get_LogicalOperator()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at MS.Internal.Data.PropertyPathWorker.GetValue(Object item, Int32 level)
at MS.Internal.Data.PropertyPathWorker.RawValue(Int32 k)'
You can safely ignore the error because it doesn't break the control or the application. In a single case it seemed that this error was causing also an AccessViolationException.
Bookmarks are not imported and missing from the document.
Workaround: Import and then export the document using the WordsProcessing library and then open it with the editor.
//using System;
//usign System.Windows.Controls;
Two consecutive lines with commented using sections result in ArgumentOutOfRangeException in SyntaxEditor with CSharpFoldingTagger.
According to the following article, when the UpdateSelectionOnLostFocus property is set to True and you enter a text that cannot update the selection, once the control loses the focus, the typed text should stay in the textbox.
https://docs.telerik.com/devtools/wpf/controls/radcombobox/howto/perform-selection-only-lost-focus
However, this doesn't happen if an item is already selected. In this case, the searched text is cleared. If you do not have a selection, then the text stays on lost focus.
To work this around, you can cache the value of the RadComboBox's Text property in the PreviewLostKeyboardFocus event handler and then restore it in the LostFocus event handler.
private string textCache;
private void RadComboBox_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
{
this.textCache = this.comboBox.Text;
}
private void RadComboBox_LostFocus(object sender, RoutedEventArgs e)
{
this.comboBox.Text = this.textCache;
}