Skip to content

Commit 92fbf8d

Browse files
Merge pull request #1227 from telerik/new-kb-disable-mouse-hover-datagrid-dotnet-maui-c9ed7c4343094ff4ad4da09c773d0f73
Added new kb article disable-mouse-hover-datagrid-dotnet-maui
2 parents b70171b + d5a164e commit 92fbf8d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Disabling Mouse Hover in Telerik DataGrid for .NET MAUI
3+
description: Learn how to disable mouse hover effects in Telerik DataGrid for .NET MAUI by customizing the MouseHoverStyle property.
4+
type: how-to
5+
page_title: How to Disable Mouse Hover Effects in DataGrid for .NET MAUI
6+
meta_title: Disable Mouse Hover in Telerik DataGrid for .NET MAUI
7+
slug: disable-mouse-hover-datagrid-dotnet-maui
8+
tags: datagrid, telerik, .net maui, mousehoverstyle, styling
9+
res_type: kb
10+
---
11+
12+
## Environment
13+
14+
| Version | Control | Author |
15+
| ------- | ------ | ------ |
16+
| 11.1.0 | DataGrid for .NET MAUI | [Dobrinka Yordanova](https://www.telerik.com/blogs/author/dobrinka-yordanova) |
17+
18+
## Description
19+
20+
I want to fully disable mouse hover effects in Telerik [DataGrid for .NET MAUI](https://docs.telerik.com/devtools/maui/controls/datagrid/overview) on Windows.
21+
22+
This knowledge base article also answers the following questions:
23+
- How to remove mouse hover effects in Telerik DataGrid for .NET MAUI?
24+
- Can I make the mouse hover appearance transparent in Telerik DataGrid?
25+
- How to customize the hover style in Telerik DataGrid?
26+
27+
## Solution
28+
29+
To disable mouse hover effects in Telerik DataGrid for .NET MAUI, customize the `MouseHoverStyle` property by removing the hover appearance. Set the background and border colors to transparent and the border thickness to `0`. Use the following example:
30+
31+
```xml
32+
<telerik:RadDataGrid x:Name="grid">
33+
<telerik:RadDataGrid.MouseHoverStyle>
34+
<Style TargetType="telerik:DataGridMouseHoverAppearance">
35+
<Setter Property="BackgroundColor" Value="Transparent" />
36+
<Setter Property="BorderColor" Value="Transparent" />
37+
<Setter Property="BorderThickness" Value="0" />
38+
</Style>
39+
</telerik:RadDataGrid.MouseHoverStyle>
40+
</telerik:RadDataGrid>
41+
```
42+
43+
## See Also
44+
45+
- [Mouse Hover Style Documentation](https://docs.telerik.com/devtools/maui/controls/datagrid/cells/mouse-hover-cell)
46+
- [Overview of Telerik DataGrid for .NET MAUI](https://docs.telerik.com/devtools/maui/controls/datagrid/overview)
47+
- [Styling Telerik DataGrid for .NET MAUI](https://docs.telerik.com/devtools/maui/controls/datagrid/theming-and-styles/styling)

0 commit comments

Comments
 (0)