Hello Telerik Team,
I am currently working with TreeListView in a WPF application and I am facing an issue related to row background color overriding when a row is selected.
In my application, certain rows need to have a custom background color depending on their type (for example: LocalFile and RemoteFile). The custom color works correctly when the row is not selected.
However, when the row is selected, the default RadTreeListView selection background color overrides the custom color, and the File-specific color is no longer visible.
My goal is to preserve the custom background color when the row is selected.
Below is a simplified version of the style currently used:
<Grid.Resources>
<Style TargetType="telerik:TreeListViewRow">
<!-- Default row color based on data -->
<Setter Property="Background">
<Setter.Value>
<Binding Path="FileSource">
<Binding.Converter>
<converter:SourceTypeToColorConverter/>
</Binding.Converter>
</Binding>
</Setter.Value>
</Setter>
<Setter Property="MouseOverBackground" Value="LightBlue"/>
<Style.Triggers>
<!-- Default selected row color -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="LightBlue"/>
</Trigger>
<!-- Selected color for local files -->
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Property="IsSelected" Value="True"/>
<Condition Binding="{Binding FileSource}" Value="LocalFile"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="LightGreen"/>
</MultiDataTrigger>
<!-- Selected color for remote files -->
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Property="IsSelected" Value="True"/>
<Condition Binding="{Binding FileSource}" Value="RemoteFile"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="LightYellow"/>
</MultiDataTrigger>
</Style.Triggers>
</Style>
</Grid.Resources>The issue occurs when the row becomes selected. The control applies the default selection background, which overrides these custom styles.
Could you please advise on the recommended way to maintain custom row background colors for specific items even when they are selected in TreeListView?
Any guidance or best practice would be greatly appreciated.
Thank you.
In a RadLayoutControl I use LayoutControlTabGroup.
I can set the background of the Item's but not on the "empty" space, is there some way to do that.
<telerik:RadLayoutControl >
<telerik:LayoutControlTabGroup Background="White">
<telerik:LayoutControlTabGroupItem Header="Tab 1" Background="Red">
<Button Content="Item 1" />
</telerik:LayoutControlTabGroupItem>
<telerik:LayoutControlTabGroupItem Header="Tab 2" Background="Blue">
<Button Content="Item 2" />
</telerik:LayoutControlTabGroupItem>
</telerik:LayoutControlTabGroup>
</telerik:RadLayoutControl>
<telerik:RadDocking HasDocumentHost="True"> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup> <telerik:RadDocumentPane Header="Document 1" Title="Document 1" /> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking>
Hi Team,
We are encountering an intermittent IndexOutOfRangeException when calling XamlFormatProvider.Export() on a RadDocument.
Exception stack:
Code:
Notes:
document is not null
Each document is different
Same code works for most documents
The exception occurs inside Telerik export logic
Documents are exported concurrently (parallel processing)
No custom type converters or custom styles added explicitly
Questions:
Is XamlFormatProvider.Export() thread-safe when used concurrently?
Can concurrent exports cause internal state corruption (e.g. type converter dictionary)?
Is there a recommended approach for exporting RadDocument in parallel (e.g. synchronization or per-thread isolation)?
Any guidance would be appreciated.
Thanks.
Zafeer
Hi ,
We have integrated RadRichTextBox into our WPF (C#) application and are trying to add RadCallout as a custom context menu. since the control is being created entirely in code-behind without XAML ,we are encountering implementation challenges.
Our expectation is that when a user selects text and right-clicks to choose the RadCallout option, the selected text should appear inside the callout type.Could you please guide us on how to achieve this?
Hello,
I have attempted to implement the solutions listed here.
We are using various ColorVariations along with our themes, however. For example:
StyleManager.ApplicationTheme = new Windows11Theme(Windows11Palette.ColorVariation.Dark);The solutions listed in the link above throw the following exception:
System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
Is there a way to use theme ColorVariations along with RadSplashScreen?
Thank you

We have an app that has RadComboBox controls arranged above some RadNumericUpDown controls. For the RadNumericUpDown controls we have it set up to open a numeric pad on PreviewMouseUp to support both mouse and touch. The issue we have is that when a combobox item is selected that lies over a numericupdown using touch, the numericupdown control receives the focus and activates the numeric pad. This does not occur when using a mouse.
Attached is an example derived from our app that reproduces this behavior. Selecting Pounds or Newtons from the Force combobox using touch will cause a message box to appear.
Is there any way to work around this behavior? It is annoying but not a show-stopper.
Thanks,
Jim