On GridViewRow I have a style that sets SelectedBackground but it does not work on the alternate rows.
xaml example
<Setter Property="SelectedBackground"
Value="Yellow" />
Is there another property that I need to set so that it will also use the SelectedBackground color when I select an alternate row
(I guessed SelectedAlternateBackground but this isn't present)
Thanks
Hello,
Is it possible to differentiate whether the user closed the RadPane (click on X in header of RadPaneGroup or ToolWindow) or whether it was closed programmatically (IsHidden=true)?
Best regards
Hello,
I try to adjust the header from "default view.jpg" to "wanted view.jpg".
Where can i set the date format as i want it?
I've tried the approach from this link WPF ScheduleView - Styling the GroupHeaders - Telerik UI for WPF. But it didn't worked at all. Even by coping the exact code from your tutorial i get the error on pic: error custom template.JPG
Also is it possible to highlight the weekends in a certain color?
Is it possible to highlight specific dates like public holiday days also in a certain color?
I haven't really found anything about adding a new row on the timeline view, like i need in my "wanted-view.jpg" picture.
best regards


Hello. I am trying to add a simple Tooltip to the RadNumericUpDown control. On the style, the Tooltip content is set to RelativeSource Self, Path Value.
The problem is that my value is double and the tooltip is 3 decimal points. The RadNumericUpDown can be configured to use 1,2, or 3 decimal points but the Tooltip content is always 3 decimal points.
I tried to bind the content to the Display Text (the TextBlock inside the RadNumericUpDown) but I found that you are not raising property changed for this property.
How can I update the property to show the decimal numbers as the dependency property of the RadNumericUpDown?

I cannot see any documentation or examples of how to scroll into a view items in a RadPanelBar. Are you able to provide an example of how to do this?
I've found a way to auto expand an item using <Setter Property="IsExpanded" Value="{Binding IsExpanded}" /> but this can expand an item which is still not visible and needs to be manually scrolled to. The IsSelected is similar but just seems to highlight that item and not scroll into view.
How can I auto scroll an item in the RadPanelBar into view using MVVM? Typically there may be approx 200 items but only 10 can be seen in view at any one time.
Code:
<telerik:RadPanelBar x:Name="radPanelBar1" Grid.Row="1" Width="500"
HorizontalAlignment="Left" VerticalAlignment="Top"
ItemTemplate="{StaticResource PanelBarHeaderTemplate}"
ItemsSource="{Binding PanelBar1Items}"
ExpandMode="Multiple">
<telerik:RadPanelBar.ItemContainerStyle>
<Style TargetType="telerik:RadPanelBarItem" BasedOn="{StaticResource RadPanelBarItemStyle}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
</Style>
</telerik:RadPanelBar.ItemContainerStyle>
</telerik:RadPanelBar>

I'm currently reviewing the latest trial WPF <PackageReference Include="Telerik.UI.for.Wpf.70.Xaml.Trial" Version="2022.3.1109" />
I'm trying to create a button with rounded edges and a different colour border. The standard WPF <Button /> works fine but the <telerik:RadButton /> creates a white inner border and also seems to clip the background on the border edges
See attached example:
The bottom Radbutton has green clipping inside the border edges and an additional white border.
How do make the RadButton appear similar to the standard WPF button (I want it to look like button at top but using RadButton)?
Code:
<Window x:Class="TelerikWpfApp2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MainWindow" Height="350" Width="525">
<StackPanel>
<Button Content="Button" Height="100" Width="100" FontWeight="Bold" FontSize="18"
Foreground="White"
Background="Green"
BorderBrush="Red"
BorderThickness="5">
<Button.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="5"/>
</Style>
</Button.Resources>
</Button>
<telerik:RadButton Content="Button" Height="100" Width="100" FontWeight="Bold" FontSize="18" CornerRadius="5"
Foreground="White"
Background="Green"
BorderThickness="5"
BorderBrush="#FFFF0505"/>
</StackPanel>
</Window>
Hello!
I have a ragGridView setup roughly as follows:
modelBuilder.Entity<TblCustomers>(entity =>
{
...
entity.Ignore(e => e.Errors);
});
public partial class TblCustomers
{
...
[NotMapped]
public string Errors { get; set; }
}
void SetupRGV()
{
var options = new DbContextOptionsBuilder<Test_Context>();
options.UseSqlServer(GlobalState.ConnectionString);
TestContext = new Test_Context(options.Options);
var view = new QueryableEntityCoreCollectionView<TblCustomers>(TestContext, TestContext.TblCustomers, new Collection<string>() { });
rgvGrid.ItemsSource = view;
}
This works fine, loads and works as expected, and I can fill the unmapped "Errors" field as need be. However, when I click the top of the "Errors" column in the grid to sort, it throws an Exception (see below), tells me I should set up explicit client evaluation and points me at this Microsoft article: https://learn.microsoft.com/en-ca/ef/core/querying/client-eval. I get the following error:
The LINQ expression 'DbSet<TblCustomers>()
.OrderBy(t => t.Errors)' could not be translated.
Additional information: Translation of member 'Errors' on entity type 'TblCustomers' failed. This commonly occurs when the specified member is unmapped. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'.
I did try that, and tried to unmap/ignore the field outright so that it wouldn't be sent to the server, but my problem persists.
I can intercept the sorting event and just cancel it when the Errors column is touched, but I'd really prefer to be able to sort by an unmapped field. Could I intercept the filtering event instead?
Is this something that a RadGridView can do for me using that approach I'm taking, or am I simply out of my depth? If I'm just on the wrong track entirely, just let me know and I'll continue researching - no need to provide a custom solution just for this.
Thanks!
Lee
When using the OpenFileDialog to browse for image files using large icons, the images are not displayed with their thumbnail previews, but rather the generic image placeholder. Is there a way to show the thumbnail previews like Windows file explorer?
