Hey,
I am currently implementing a RadPDFViewer in my WPF application.
I managed to change the Tooltip Text of the RadPdfViewerToolBar, but I also want to change the Language of the elemnts in the ContextMenu, because my users are not that well with english.
Is there any hidden way I am missing?
Second I have a problem with the copy functionality. It is only possible to copy text. Or at least I find no way to copy the pictures.
Greetings
Benedikt

Hello,
I am struggeling with a Telerik for WPF project with the .netore controls.
When creating a project, based on dotnet45, i get all Telerik-controls in the toolbox-window of VS2019.
When creating a project, based on netcor30, i get no Telerik-controls in the toolbox-window of VS2019.
I tried the manual way, described on Telerik help pages, but it does`nt work.
If i select a Telerik-Assembly from lib-directory (created by the Telerik-template an VS2019), maybe Telerik.Windows.Controls.dll, i only see a VS progess-bar working and working and working ...
After 5 minutes, i killed VS2019.
I work on Windows10, 1909 (Build 18363.535) with almost .netcore from 3.0, 3.0.1, 3.1, ... installed (SDK, Runtime, Desktop, ...).
VS2019 Professional: 16.4.2
I7 4770k, 32 GB Ram, only SSDs on board.
Can someone help me?

Hey,
I have a TimeBar which displays data within a visible time range of several hours and has a max selection range of 30 minutes. Thus I want to change the Date displayed in the Selection Range Title from "MM/dd/yyyy" to "dd.MM.yyyy HH:mm:ss". How can this be achieved?
Example code:
<telerik:RadTimeBar IsSnapToIntervalEnabled="False"
PeriodStart="{Binding AnalysisDetailPeriodStart, Mode=TwoWay}" PeriodEnd="{Binding AnalysisDetailPeriodEnd, Mode=TwoWay}" VisiblePeriodStart="{Binding AnalysisDetailVisiblePeriodStart, Mode=TwoWay}" VisiblePeriodEnd="{Binding AnalysisDetailVisiblePeriodEnd, Mode=TwoWay}"
SelectionStart="{Binding AnalysisDetailSelectedStart, Mode=TwoWay}" SelectionEnd="{Binding AnalysisDetailSelectedEnd, Mode=TwoWay}" MaxSelectionRange="{Binding AnalysisDetailMaxSelectionRange, Mode=OneWay}">
<telerik:RadTimeBar.Resources>
<utils:HourFormatterProvider x:Key="HourFormatterProvider"/>
</telerik:RadTimeBar.Resources>
<telerik:RadTimeBar.Intervals>
<telerik:MinuteInterval />
<telerik:HourInterval FormatterProvider="{StaticResource HourFormatterProvider}" />
<telerik:DayInterval />
</telerik:RadTimeBar.Intervals>
<telerik:RadLinearSparkline ItemsSource="{Binding ObservableData}" XValuePath="Date" YValuePath="Occurrences" />
</telerik:RadTimeBar>
how i can use the exemple of wpf erp without web service just connect to local data base

Hi all,
I have a problem using MergedCells in RadGridView.
Let's take an example.
Let's say we have this class :
public class TestItem
{
private int _id;
private int _modifierId;
private int _deleteId;
public int Id
{
get { return _id; }
set { _id = value; RaisePropertyChanged("Id"); }
}
public int ModifierId
{
get { return _modifierId; }
set { _modifierId = value; RaisePropertyChanged("ModifierId"); }
}
public int DeleteId
{
get { return _deleteId; }
set { _deleteId = value; RaisePropertyChanged("DeleteId"); }
}
}
And this class to create a collection of TestItems
public class TestCollection : ObservableCollection<TestItem>{ public TestCollection(IEnumerable<TestItem> items) : base(items) { }}
With this simple XAML :
<telerik:RadGridView ItemsSource="{Binding Collection}" MergedCellDirection="Vertical" GroupRenderMode="Flat"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding ModifierId}" DataFormatString="{}{0:N0}" IsCellMergingEnabled="True" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" DataFormatString="{}{0:N0}" IsCellMergingEnabled="True" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding DeleteId}" DataFormatString="{}{0:N0}" IsCellMergingEnabled="True" /> </telerik:RadGridView.Columns></telerik:RadGridView>
How can we create, for ModifierId and for DeleteId, a merged cell with button ?
And when we click on a button we make an action ?
<Window x:Class="Hyperlink.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525"> <Grid> <telerik:RadBusyIndicator> <telerik:RadDiagram IsEditable="False" SelectionMode="None"> <telerik:RadDiagramShape> <telerik:RadDiagramShape.ContentTemplate> <DataTemplate> <TextBlock> <Hyperlink NavigateUri="http://www.telerik.com" RequestNavigate="OnNavigate"> <TextBlock Text="Telerik"></TextBlock> </Hyperlink> </TextBlock> </DataTemplate> </telerik:RadDiagramShape.ContentTemplate> </telerik:RadDiagramShape> </telerik:RadDiagram> </telerik:RadBusyIndicator> </Grid></Window>using System.Diagnostics;using System.Windows;using System.Windows.Navigation;namespace Hyperlink{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void OnNavigate(object sender, RequestNavigateEventArgs e) { Process.Start(e.Uri.AbsoluteUri); e.Handled = true; } }}Hi,
We have a requirement to have multiple isolated work spaces in our application (which we originally planned to host in RadTabbedWindow tabs).
Each of these work spaces need to have their own RadDocking set up and be navigable.
We are using implicit datatemplates for our MVVM infrastructure and binding ContentControls to viewmodels at runtime and we are having issues with the TabControl/Window datatemplate and the RadDocking framework.
The problems we are having are as follows:
1) When we bind an ObservableCollection of ViewModels to the ItemsSource property of the RadTabControl/RadTabbedWindow and we try to set up RadDocking in the TabControl/Window's ContentTemplate, an exception gets thrown.
Here's our the code:
<telerik:RadTabControl ItemsSource="{Binding WorkspaceViewModels}" x:Name="WorkspaceContainer" ScrollMode="Viewport" SupressSelectedContentTemplateReapplying="True" IsContentPreserved="True"> <!-- Event is only available with RadTabbedWindow
<telerik:EventToCommandBehavior.EventBindings> <telerik:EventBinding EventName="AddingNewTab" Command="{Binding AddWorkspaceCommand}"/> </telerik:EventToCommandBehavior.EventBindings>--> <telerik:RadTabControl.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Title}"/> </StackPanel> </DataTemplate> </telerik:RadTabControl.ItemTemplate> <telerik:RadTabControl.ContentTemplate> <DataTemplate> <telerik:RadDocking BorderThickness="0" Padding="0"> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup x:Name="PrimaryPaneGroup"> <ContentPresenter Content="{Binding}"/> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking> </DataTemplate> </telerik:RadTabControl.ContentTemplate> <telerik:RadTabControl.ItemContainerStyle> <Style TargetType="telerik:RadTabItem"> <Setter Property="MinHeight" Value="40" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="PinButtonVisibility" Value="Visible" /> <Setter Property="CloseButtonVisibility" Value="Visible"/> <Setter Property="IsSelected" Value="{Binding IsActiveWorkspace}" /> </Style> </telerik:RadTabControl.ItemContainerStyle></telerik:RadTabControl>And here's the exception that gets thrown is as follows:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Controls.Docking
StackTrace:
at Telerik.Windows.Controls.RadPaneGroup.OnIsInDocumentHostChanged(Boolean oldValue, Boolean newValue)
at Telerik.Windows.Controls.RadPaneGroup.Telerik.Windows.Controls.Docking.IDocumentHostAware.set_IsInDocumentHost(Boolean value)
at Telerik.Windows.Controls.RadSplitContainer.PrepareContainerForItemOverride(DependencyObject element, Object item)
at System.Windows.Controls.ItemsControl.MS.Internal.Controls.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)
at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
at System.Windows.Controls.Panel.GenerateChildren()
at System.Windows.Controls.Panel.EnsureGenerator()
at System.Windows.Controls.Panel.get_InternalChildren()
at Telerik.Windows.Controls.ProportionalStackPanel.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize)
at Telerik.Windows.Controls.DockingPanel.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at Telerik.Windows.Controls.RadDocking.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2) We have found that we can fix this issue and prevent the NullReferenceException by modifying the code above and adding a RadTabItem wrapper to the ContentTemplate like this:
<telerik:RadTabControl.ContentTemplate> <DataTemplate DataType="{x:Type vms:WorkspaceViewModel}"> <telerik:RadTabItem> <telerik:RadDocking BorderThickness="0" Padding="0"> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup x:Name="PrimaryPaneGroup"> <ContentPresenter Content="{Binding}"/> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking> </telerik:RadTabItem> </DataTemplate> </telerik:RadTabControl.ContentTemplate>
The problem, however, is that this makes the entire central pane basically act like a button (see attached picture ), where hovering over the pane changes the color of the entire screen.
Neither one of these gets us any closer to what we really need: a bindable RadTabbedWindow with a dynamic/templatable/bindable RadDocking setup on each tab.
I would really appreciate any pointers or help on this!
Thank you so much for your time.
Tim

I have problem with menu alignment on two another computers with different Windows version but with the same language, the same application.
Our menu is defined in that way:
<telerik:RadMenu Name="mainMenu"
VerticalAlignment="Top"
HorizontalAlignment="Stretch"
IsMainMenu="True"
FlowDirection="LeftToRight"
ClickToOpen="True"
Grid.Row="0" Grid.Column="0">
<telerik:RadMenuItem Header="Katalog"
SubmenuOpened="RadMenuItem_SubmenuOpened">
<telerik:RadMenuItem Header="Kategorie">
<telerik:RadMenuItem Header="Open"></telerik:RadMenuItem>
<telerik:RadMenuItem Header="Refresh"></telerik:RadMenuItem>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="Grupy">
<telerik:RadMenuItem Header="Open"></telerik:RadMenuItem>
<telerik:RadMenuItem Header="Refresh"></telerik:RadMenuItem>
</telerik:RadMenuItem>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="Motyw systemowy"
SubmenuOpened="RadMenuItem_SubmenuOpened">
<telerik:RadMenuItem Header="Crystal Light" IsCheckable="True" IsChecked="{Binding IsCrystalLight, Mode=TwoWay}"/>
<telerik:RadMenuItem Header="Crystal Dark" IsCheckable="True" IsChecked="{Binding IsCrystalDark, Mode=TwoWay}"/>
<telerik:RadMenuItem Header="Green Light" IsCheckable="True" IsChecked="{Binding IsGreenLight, Mode=TwoWay}"/>
<telerik:RadMenuItem Header="Green Dark" IsCheckable="True" IsChecked="{Binding IsGreenDark, Mode=TwoWay}"/>
</telerik:RadMenuItem>
<telerik:RadMenuItem Header="Pomoc"
SubmenuOpened="RadMenuItem_SubmenuOpened">
<telerik:RadMenuItem Header="O programie">
<telerik:RadMenuItem.Icon>
<Image Source="{telerik:IconResource IconRelativePath=address.png, IconSources={StaticResource IconSources}}" Stretch="None"/>
</telerik:RadMenuItem.Icon>
</telerik:RadMenuItem>
</telerik:RadMenuItem>
</telerik:RadMenu>
If I added code to properly align menu on submenu item open like below, the behaviour is also bad.
My code to align submenu:
private void RadMenuItem_SubmenuOpened(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
RadMenuItem menuItem = sender as RadMenuItem;
if (menuItem != null)
{
System.Diagnostics.Debug.WriteLine($"menuItem.ActualWidth: {menuItem.ActualWidth}");
Popup popup = menuItem.ChildrenOfType<Popup>().FirstOrDefault();
if (popup != null)
{
System.Diagnostics.Debug.WriteLine($"popup.ActualWidth: {popup.ActualWidth}");
System.Diagnostics.Debug.WriteLine($"((Grid)popup.Child).ActualWidth: {((Grid)popup.Child).ActualWidth}");
popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Bottom;
var popupWidth = ((Grid)popup.Child).ActualWidth;
var menuWidth = menuItem.ActualWidth;
popup.HorizontalOffset = popupWidth - menuWidth;
}
}
}
It looks like it is invalid left to right support or something else.
Please help.
Hello,
I work with Telerik WPF 2016.R3 and since this morning the provider OpenStreetMap doen't work anymore
I check with the site of OpenStreetMap and the request done by the provider with my navigator and it works well but when my application is calling OSM to get tiles it returns an HTTP error 429 : too many requests
This problem only happens since this morning, last week it works perfectly.
All our applications use this provider to show the map, and so all our clients have the problem !
From my first investigations:
- the Telerik provider use HTTP protocol but when using in my navigator it redirects automatically in HTTPS (I don't know if it has an impact)
- I tried to create a new provider using Telerik Map Source of OSM to force the HTTPS but the same HTTP Error 429 happens
- Using Fiddler to check the request I succeed to have a good response when I added a User-Agent Header in the request
- using the latest demo (WPF 2019.R3), in the sample of Provider Bing and OSM, Bing works correctly but not OSM (the same HTTP error 429 happens)
Do you have any idea of what's happening and how to fix it please ?
Thank you
Thomas
PS : I can't update my version of Telerik because there is a very big impact on the map layer management done in v2017.R3 that cannot match our layer management in our application.