Window RadTreeView c# - Remove mouse over back ground highlight on nodes

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

Hi All,

I searched on internet for the solution but didn't find any solution. I am using RadTreeView control, when I move mouse over treeview, nodes get highlighted. I used 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);
        }           
    }

 

Kindly provide me solution, stuck on this for a long time.

 

Thanks

 

1 Answer, 1 is accepted

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

Hello, Ravinder,

I noticed you submitted another thread discussing similar topic, particularly highlighting nodes when the mouse is over them. Can you please see my response that I posted in the other thread

Let me know in case you have further questions.

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