Are there any similar types of Matrix among Telerik controls?

1 Answer 184 Views
GridView HeatMap PivotGrid
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Psyduck asked on 29 Apr 2021, 10:01 AM

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.

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 03 May 2021, 02:33 PM

Hello KIM,

The RadHeatMap control is the most suitable control for your requirement even if its purpose is a bit different. One alternative solution would be to use a Grid panel and use ColumnDefinitions and RowDefinitions created in code based on your data.

The RadHeatMap doesn't work because the IsHitTestVisible property of the panel that holds it is set to False. This is why the interactions with the controls in the cells are disabled. The property is disabled in order to improve the performance of the labels UI since their original design was to show text labels. To enable this, you can use an implicit style targeting the HeatMapLabelsGrid and set the IsHitTestVisible property to True. For example:

<Window.Resources>
	<ResourceDictionary>
		<ResourceDictionary.MergedDictionaries>
			<ResourceDictionary Source="pack://application:,,,/TelerikHeatMapTest;component/ResourceTemplate.xaml" />
		</ResourceDictionary.MergedDictionaries>
		<Style TargetType="heatMaps:HeatMapLabelsGrid" BasedOn="{StaticResource HeatMapLabelsGridStyle}">
			<Setter Property="IsHitTestVisible" Value="True" />
		</Style>
	</ResourceDictionary>
</Window.Resources>

Where the "heatMaps" schema points to:

xmlns:heatMaps="clr-namespace:Telerik.Windows.Controls.HeatMap;assembly=Telerik.Windows.Controls.DataVisualization"

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
GridView HeatMap PivotGrid
Asked by
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Martin Ivanov
Telerik team
Share this question
or