Hello
I have upgraded my version from 2019 R3 to 2020 R3 and have found that the GridView layouts saved in the old version will not longer load in the new version.
Here is my existing code:
string layout; // loaded from filePersistenceManager manager = new PersistenceManager(); byte[] byteArray = Encoding.ASCII.GetBytes(layout);MemoryStream stream = new MemoryStream(byteArray);manager.Load(this.RadGridView, stream);
When trying to load the layout it fails with:
Exception thrown: 'System.NullReferenceException' in Telerik.Windows.PersistenceFramework.dll Object reference not set to an instance of an object.
If have tried enabling AllowCrossVersion, but this then fails with:
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll
The only way I can get it to work is by following the recommendation in this post Here, it then loads as expected and without any errors:
PersistenceManager manager = new PersistenceManager(); byte[] byteArray = Encoding.ASCII.GetBytes(this.layout.Replace("Version=2019.3.1023.45", "Version=2020.3.1020.45"));MemoryStream stream = new MemoryStream(byteArray);manager.Load(this.RadGridView, stream);
This isn't a satisfactory fix in the long run. Could you please advise how I should be handling this?
Thanks
Dave

Hi,
I want to modify the RadImageEditorUI controls placement and remove some icons form controls. can you any one tell me how to remove File open and save control ?
Regards
Hema

Reading this article ...
Assume I have my Font Sizes setup as in the sample:
Office2016Palette.Palette.FontSizeS = 10; Office2016Palette.Palette.FontSize = 12; Office2016Palette.Palette.FontSizeL = 14; Office2016Palette.Palette.FontFamily = new FontFamily("Segoe UI");
Suppose I want to set the FontSize for a specific control:
<telerik:RadRadioButton x:Name="rbBiomeOption" Grid.Row="0" Grid.Column="0" Content="Standard Biome" GroupName="Biomes" Margin="4" CornerRadius="8" FontWeight="Bold"/>
I'd like to add to the RadRadioButton something like
<telerik:RadRadioButton x:Name="rbBiomeOption" Grid.Row="0" Grid.Column="0" Content="Standard Biome" GroupName="Biomes" Margin="4" CornerRadius="8" FontWeight="Bold" FontSize="FontSizeL"/>
Which is not valid, but that's essentially my objective.
Any ideas?
Cheers, Rob.

After reading the documentation on the ImageEditor I find a significant lack of documentation on how to use the many "commands". In my case the HueShiftTool?
I'd love to see code samples contained in the documentation rather than links to generic projects that need to be installed. I usually just need the basic "idea" behind how to implement, but I see nothing on "HueShiftTool". There is an "Effect" property but no idea what I need to do beyond that?
My objective is to simply apply a Hue Shift to the loaded image in the Image Editor. I don't need all the UI aspects, just execute a hue shift on the loaded image.
Any suggestions welcome.
Cheers, Rob.
Have a project that uses Telerik UI for WPF libraries.
Researching an up coming customer request: they want to submit a request from the current project to SQL and write the output directly to Excel without UI component.
Question using the current Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.for.Wpf or Telerik.Windows.Documents.SpreadsheetStreaming. Can I do SQL query take the result/data store object and write the output directly to Excel or must I use a UI like RadGridView then export to Excel?
I will need to set the Excel worksheet format before import data.
Hello,
we're currently updating our application to use Telerik components in order to make use of implicit styling.
I'm making good progress so far but am stuck at this one.
We're currently using the Office2019 theme in the Light color variation.
The problem I'm facing is with the selection of a TreeViewItem and the involved change of the Foreground color that goes along with it.
For TreeViewItems that use a string as a header this works just fine. The item i selected, the Background changes to blue and the Foreground to white. Perfetly readable.
However if I use a grid (containing a TextBlock) as the Header the foreground of the TextBlock remains black and does not change to white.
I tried binding the Foreground color of the TextBlock to the Foreground color of the parent TreeViewItem like so:
Binding binding = new Binding("Foreground");binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(RadTreeViewItem), 1);tb.SetBinding(TextBlock.ForegroundProperty, binding);
However this does not work. Possible because the Foreground property of the TreeViewItem is never changed, but only the Foreground property of the header:
<!-- IsSelected general setters --><Trigger Property="IsSelected" Value="True"> <Setter TargetName="Header" Property="Foreground" Value="{telerik1:Office2019Resource ResourceKey=CheckedForegroundBrush}"/> <Setter TargetName="BorderVisual" Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(helpers:ThemeHelper.CheckedBrush)}"/></Trigger>
I tried to add another setter to this trigger and set the Foreground property of the TreeViewItem. This kind of works, but unfortunately propagates through all child items of a TreeViewItem.
Any suggestions on how my desired behaviour could be implemented?

If I select Hue Shift and move the slider and have a value of 115.75, then I click on the "Saturation" item and make adjustments via slide to 20.12, now I click on Hue Shift and it's value has reset back to 0.0 even though the "Hue shift" has been applied to the image?
My expectation was the Hue Shift value would be retained NOT reset ... this happens to all the command controls. Is there a way to prevent the reset of these values when I navigate from command (HueShift) to command (Saturation)?
I noticed your ImageEditor sample application has the same issue ... see video for clarity:
https://youtu.be/ya4a5lMQBdU
Cheers, Rob.

I am following the documentation from here:
But I would like to use a RadGlyph instead of an image url. Is there a way to use a RadGlyph instead of an image for the IconUrl property in the following class and template? I have not been able to get it to work.
public class MenuItem { public MenuItem() { this.SubItems = new ObservableCollection<MenuItem>(); } public string Text { get; set; } public Uri IconUrl { get; set; } public bool IsSeparator { get; set; } public ICommand Command { get; set; } public ObservableCollection<MenuItem> SubItems { get; set; } }
<Style x:Key="MenuItemStyle" TargetType="telerik:RadMenuItem"> <Setter Property="Icon" Value="{Binding IconUrl}"/> <Setter Property="IconTemplate"> <Setter.Value> <DataTemplate> <Image Source="{Binding}" Stretch="None"/> </DataTemplate> </Setter.Value> </Setter> <Setter Property="IsSeparator" Value="{Binding IsSeparator}"/> <Setter Property="Header" Value="{Binding Text}"/> <Setter Property="ItemsSource" Value="{Binding SubItems}"/> <Setter Property="Command" Value="{Binding Command}"/> </Style>
Regards,
Don
I use the UI for WPF (version 2020.3.1020) with a .NET Core 3.1 application on Windows 10. I get my Telerik assemblies directly from the Telerik NuGet servers. This has been working well for about a year.
I tried to upgrade my projects to .NET 5 and it does not compile. Whereever I use Telerik types, I get build errors like this:
(345,17,345,53): error CA1416: 'SelectionRange<double>' is supported on 'Windows' 7.0 and later(1031,23,1031,31): error CA1416: 'CartesianPlotBandAnnotation.Axis.get' is supported on 'Windows' 7.0 and later
I've seen on Telerik's own page that they at least support the .NET 5 Preview
Telerik UI for WPF also provides assemblies for .NET 5.0 Preview (since R2 2020) and .NET 5.0 Release Candidate 1 (RC1) (since R3 2020).
So I'm wondering how I can make my project work with the official .NET 5? Is this supported yet?

Hi, How do I get the count function to show '0' when there are no rows on the Grid?
The aggregate functions all seem to disappear when there are no rows.
Thanks,
Richard
<telerik:GridViewColumn.AggregateFunctions> <telerik:CountFunction ResultFormatString=" {0}" /></telerik:GridViewColumn.AggregateFunctions>