The exception message is the following: System.ArgumentException: 'The value '102' is not a valid value for the enum 'FilterOperator'.'
To work this around, avoid using mixed typed values in the ItemsSource.
Localize the tooltips for the match case button, the match word button and the use regular expression button.
Currently, the tooltips of the buttons are using hardcoded strings in English.
To translate the tooltips, you can get the corresponding buttons on load of the syntax editor control and replace their tooltips manually.
private void syntaxEditor_Loaded(object sender, RoutedEventArgs e)
{
var buttons = this.syntaxEditor.ChildrenOfType<RadToggleButton>();
var matchCaseButton = buttons.FirstOrDefault(x => x.Name == "PART_MatchCaseButton");
var matchWordButton = buttons.FirstOrDefault(x => x.Name == "PART_MatchWordButton");
var useRegularExpressionsButton = buttons.FirstOrDefault(x => x.Name == "PART_UseRegularExpressionsButton");
matchCaseButton.ToolTip = CreateToolTip("SyntaxEditor_MatchCase"); // these are custom localization resource keys that should be manually defined by the developer that uses this solution
matchWordButton.ToolTip = CreateToolTip("SyntaxEditor_MatchWord");
useRegularExpressionsButton.ToolTip = CreateToolTip("SyntaxEditor_UseRegularExpressions");
}
private static ToolTip CreateToolTip(string resourceKey)
{
var toolTip = new ToolTip();
toolTip.Content = LocalizationManager.Manager.GetStringOverride(resourceKey);
return toolTip;
}
Cell contents are missing when the header size is assigned through the e.Size property of the HeaderSizeEventArgs in the HeaderSizeNeeded event handler of RadVirtualGrid.
This happens only for some of the cells and when the viewport has many rows and columns.
To work this around, instead of setting the header size in the HeaderSizeNeeded event handler, use the ColumnWidth property of RadVirtualGrid.
<telerik:RadVirtualGrid ColumnWidth="50" />
The System.Drawing.Common package is installed in the project that builds Telerik.Windows.Controls.Navigation.dll for .NET Core 3.1 Core, .NET 5 and .NET 6. The current package version is 4.7.0.
Update the package to the latest available version.