Unplanned
Last Updated: 21 May 2020 14:05 by ADMIN
Mark
Created on: 06 May 2020 07:02
Category: HeatMap
Type: Feature Request
1
HeatMap: Allow to update a single cell's color without redrawing all the other cells

I'm using a "Custom Heat Map Source" as described here:
https://docs.telerik.com/devtools/wpf/controls/radheatmap/howto/create-custom-heatmap-source

Upon initialization, I fill in the color of all the cells with a default color.
Later, as data comes in, I update the color of individual cells.

It seems that the only way to refresh the Definition so that it will display the newly set cell color is to do the following:

HeatMapDefinition.SelectedItems = new Collection<object>();

After that, the Definition updates itself by calling method "CustomHeatMapDefinition::GetColor()" on each and every cell (which of course gets delegated to the "CustomHeatMapSource" implementation.

This could lead to performance problems on large Heat-Maps.

So my request is that there is a feature allowing the updating of individual cell-data and a refresh mechanism that would not query each heat-map cell afterwards, but only the updated cells.

I have discussed this in a support request (https://www.telerik.com/account/support-tickets/view-ticket/1464531) with Dinko and he suggested I request this feature.

Best,
Mark

6 comments
ADMIN
Martin Ivanov
Posted on: 21 May 2020 14:05

Hello Mark,

HeatMapColorGrid is the panel that draws the cells in the RadHeatMap control. You are correct, HeatMapColorGrid uses the heatmap definition.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Mark
Posted on: 20 May 2020 15:29

Hello Martin,

Thank you for your inputs.

I assume that the "HeatMapColorGrid" is that object that uses the "CustomHeatMapDefinition"?

As a work-around that would probably work; I'm not sure if I will get that through a GitHup review, though.

Thanks!

Best,
Mark

ADMIN
Martin Ivanov
Posted on: 20 May 2020 10:04

Hello Mark,

I am attaching a modified version of the CustomHeatMapSource SDK example that shows how to color only a specific cell by its row and column index. I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Attached Files:
ADMIN
Martin Ivanov
Posted on: 20 May 2020 06:24

Hello Mark,

Thank you for confirming this. We approved this feature request. Also, I've twitched the title a bit in order to be a bit more general.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Mark
Posted on: 13 May 2020 06:30

Hello Martin,

Yes, that is correct.

Thanks,

Mark

ADMIN
Martin Ivanov
Posted on: 13 May 2020 05:05

Hello Mark,

Thank you for the suggestion. This sounds meaningful but before proceeding with changing its status, may I ask you to confirm if I got it properly? So, at some point in time, you need the color of the a particular cell to change and you need an API that allows you to change a specific area (the updated cell) of the generated Bitmap image instead of iterating all cells and redrawing the picture from scratch. Is this correct?

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.