Telerik Forums
UI for WPF Forum
1 answer
160 views

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

Stenly
Telerik team
 answered on 17 Jan 2023
0 answers
160 views

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

Sergej
Top achievements
Rank 1
 updated question on 16 Jan 2023
1 answer
194 views

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

Martin Ivanov
Telerik team
 answered on 16 Jan 2023
1 answer
144 views
Hello,

I'm trying to replicate two old (and glorious) Janus controls.
They are the ExplorerBar and the ButtonBar (I am attaching two images taken from an Office Blue theme).
They are not technically difficult but it is tedious to properly maintain each theme.

The former can be treated as a panel of Expanders, background and margins of this panel should depend on the theme. Something similar can be achieved from RadDocking (but the panels should be collapsible)

The second is trivial yet I can't find any container that automatically applies the selected theme, if not a vertical radToolbar but it doesn't seem like an optimal solution to me...

Ideas? Tips?
Thank you.
Martin Ivanov
Telerik team
 answered on 13 Jan 2023
1 answer
177 views

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?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 updated answer on 13 Jan 2023
1 answer
116 views
Does an implict theme apply to a System.Windows.Window? I'm setting a dark variant to my theme and the System.Windows.Window is all white.
Martin Ivanov
Telerik team
 answered on 13 Jan 2023
1 answer
114 views

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>

 

Martin Ivanov
Telerik team
 answered on 12 Jan 2023
1 answer
172 views

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>

Stenly
Telerik team
 answered on 12 Jan 2023
1 answer
214 views

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

Dilyan Traykov
Telerik team
 answered on 11 Jan 2023
1 answer
200 views

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?

Martin Ivanov
Telerik team
 answered on 10 Jan 2023
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?