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'm looking for a similar control like Matrix table.
Among them, HeatMap Control is the most similar, so I used it.
But here is the problem. I have attached an example file.
I want to control by putting TextBox in Cell. However, putting a textbox in the template doesn't work.
I'm far from using HeatMap, but I'm trying to use it this way.
Is there a way or could you recommend a different control for what I want to do?
Thanks.
I am trying to display the values used for the RadHeatMap as labels in the table but somehow I cannot get it to work. The version of Telerik which is used is 2015.3.930.45 (which is 2015 Q3 so it should include the new labeling functionality which was introduced in 2015 Q2).
I have looked at the relevant example in the demo application (version R2 2017) but that code does not work in 2015 Q3).
What could be the issue here? Thanks in advance!
Is it possible RadHeatMap axes SmartLabelsMode="SmartStep" ? As you can see in the attached image , when I have a lot of data , labels overlap. Is there any solution in radhepmap ? In radcartesianchart with SmartStep the problem is solved.
Regards,
Gerard.
Hello,
It could be possible to represent X axis and Y axis into bottom side and right hand, respectively?
<
telerik:RadHeatMap
x:Name
=
"radHeatMap"
ShowToolTips
=
"True"
CellBorderThickness
=
"1"
CellBorderColor
=
"#FFE4E4E4"
>
<
telerik:RadHeatMap.Definition
>
<
telerik:CategoricalDefinition
ItemsSource
=
"{Binding Path=HeatMapSeries}"
RowGroupMemberPath
=
"Z"
ColumnGroupMemberPath
=
"X"
ValuePath
=
"Y"
Colorizer
=
"{StaticResource HeatMapValueGradientColorizer}"
/>
</
telerik:RadHeatMap.Definition
>
</
telerik:RadHeatMap
>
Regards,
Gerard.
Hi,
I would like to know if its possible to display a heat map with different item sizes? We need to visualize road conditions and we use a custom built chart using writable bitmap currently.
I am busy replacing these charts with Telerik controls. But all the examples ive seen for the heatmap, all items are the same size.
I have attached our current HeatMap, highlighted with Yellow rectangle.