RadTreeView window C# - remove back ground color on mouse over

1 Answer 23 Views
Treeview
Ravinder
Top achievements
Rank 1
Ravinder asked on 15 Dec 2025, 12:42 PM

Hi All,

I have implemented the Telerik window tree view control in my project, in output when I move mouse over nodes, get highlighted. I need to remove that one.

I tried the following ways but no luck.

 

 private void radTreeList_NodeMouseMove(object sender, RadTreeViewMouseEventArgs e)
 {
     e.Node.BackColor = Color.Transparent; // Remove hover background
 }

 

  private void radTreeList_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
  {
      e.NodeElement.BackColor = Color.Transparent; // Remove hover background
      e.NodeElement.DrawFill = false; // Disable fill

      if (e.Node.Selected)
      {
          e.Node.BackColor = Color.Blue; // Default background
          e.Node.ForeColor = Color.White;      // Default text color
      }
      else
      {
          e.NodeElement.ContentElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
          e.NodeElement.ContentElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
      }           
  }

 

Please provide me a solution to get rid off this problem.

 

Thanks,

Ravinder Singh

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 17 Dec 2025, 09:08 AM

Hello, Ravinder,

If I understand you correctly, you want to remove the background highlight when the mouse hovers over nodes in RadTreeView. This behavior is managed by the HotTracking property. The HotTracking property indicates whether hot tracking is enabled for tree nodes. When enabled, nodes are highlighted when the mouse pointer hovers over them.

To disable hot tracking, set HotTracking to false as follows:

this.radTreeView1.HotTracking = false;

I hope this helps. If you have any other questions, do not hesitate to contact me.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Treeview
Asked by
Ravinder
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or