Hello,
we currently use a HeatMap for our C# WPF (.NET Core) project to visualize data with a custom HeatMapDefinition.
Now we want the HeatMap to show a selection border for the selected cell, but this is not working for us as no selection border is shown.
The problem is easily reproducible in the xaml-sdk (with the CustomHeatMapSourceAndDefiniton project).
Just change in the MainWindow.xaml the RadHeatMap like this:
<telerik:RadHeatMap x:Name="heatmap"
SelectionMode="SingleDataItem"
SelectedCellBorderColor="Magenta"
SelectedCellBorderThickness="5">
...
And limit the GetData parameters in MainWindow.xaml.cs to something like:
CustomHeatMapItem[,] data = this.GetData(20, 30);
According to the documentation, setting SelectionMode, SelectedCellBorderColor and SelectedCellBorderThickness like this should be sufficient, but in our test no border was drawn.
We tested in our project with a CategoricalDefinition and there the selection does work.
Looking into the source code of the HeatMap, the HeatMapColorGrid should be responsible to draw the selection border in different combinations (with and without hover, etc).
In the method RedrawAllCells() for example:
this.DrawSelectedCell(rowIndex, columnIndex, intColor);
However those calls all seem gated by if-checks with a call to this.Definition.IsCellSelected(rowIndex, columnIndex).
Which calls the method IsCellSelected from the current definition casted as HeatMapDefinition.
This method in the HeatMapDefinition always returns false and is internal, so we cannot override it within our derived custom HeatMapDefinition (as opposed to e.g. CategoricalDefinition, which overrides it).
So the question is, how do we get the HeatMap to draw the selection border, if we cannot tell it that the cell is selected?
Or did we miss something?
Hello,
I have a floating RadPane, I need to identify when the user stops dragging it. It can be still floating and and not docked.
Hello,
We are developing a medical system for hospitals. One of the functionalities is to allow users to use an editor or designer to create interactive documents such as referrals, patient questionnaires, etc. It is important that such a document could be printed, e.g. in A4 format.
Which controls will help us build designer documents?
Greetings
Jarek
I have been trying to use a VirtualQueryableCollectionView with a RadGridView but no matter what I do, the grid view is always empty.
// Person is an entity.
public class Person
{
public string Name { get; set; }
public string Dept { get; set; }
public double Salary { get; set; }
}
public VirtualQueryableCollectionView PeopleView { get; set; }
// dbContext is an OData DataServiceContext. peopleQuery has a Count() of 1000 items.
IQueryable<Person> peopleQuery = dbContext.Person.OrderBy(x => x.Name);
PeopleView = new VirtualQueryableCollectionView(peopleQuery) { LoadSize = 50 };
OnPropertyChanged(nameof(PeopleView));
<telerik:RadGridView AutoGenerateColumns="True"
ItemsSource="{Binding PeopleView}" />
Using .NET 6 and version 2024.1.312 of DataVisualization.for.Wpf.Xaml. Compiling with this reference gives this warning:
warning NU1603: Telerik.Windows.Controls.DataVisualization.for.Wpf.Xaml 2024.1.312 depends on System.ServiceModel.Http (>= 6.0.2) but System.ServiceModel.Http 6.0.2 was not found. An approximate best match of System.ServiceModel.Http 6.1.0 was resolved.
Nuget prefers the lowest version specified apparently and there is no 6.0.2 in the feed:
https://www.nuget.org/packages/System.ServiceModel.Http/6.0.0#versions-body-tab
I think the fix here is for the nuget package to require a minimum version that does exist in the feed. Here is a detailed discussion:
https://github.com/NuGet/Home/issues/5764
hello,
Dash line style connector and simple line style connector draw together in draw in one diagram.
Diagram binding using datasource.
<Style x:Key="CrashPager" TargetType="telerik:RadDataPager" BasedOn="{StaticResource {x:Type telerik:RadDataPager}}"> <Setter Property="Margin" Value="0,0,0,0" /> <Setter Property="Padding" Value="0,0,0,0" /> <Setter Property="Height" Value="Auto" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="VerticalContentAlignment" Value="Top" /> </Style>
The code above has no margin and no padding.
Something is chopping the bottom from the RadDataPager control.
My guess is that this is being caused by the theme.
How can I get to show the control correctly?
Hi Team,
I'm trying to add a RadNotifyIcon into my telerik wpf project, but it keeps throwing the error below in xaml file
"the name RadNotifyIcon does not exist in the current namespace".
<telerik:RadNotifyIcon x:Name="NotifyIcon"
ShowTrayIcon="False"
TrayIconSource="/NotifyIcon;component/Icons/TelerikWPFNotifyIcon.ico"
PopupContentTemplate="{StaticResource NotifyIconPopupContentTemplate}" />
I did follow the below options , but still not working.
the visual studio version I'm using is Microsoft Visual Studio Community 2022 (64-bit) - Current, Version 17.4.3
Any suggestion will be helpful.
Thanks,
Lenin.
Hello Telerik Team,
We are using Telerik 2023.2.718.45.
If I use PivotFieldList, it is not showing up in the UI for the above version.
But if I try the older version 2020.3.915.45, it is working good.
I don't know what is wrong in the new one.
I have attached the sample project which uses the latest version.
Please refer it and let us know the solution for the same.
I have also attached the screenshot of the UI of both versions.
Thanks,
Muhammad Azhar Shah