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

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

i add some "CommandBarButton"s into RadCommandBar
i need image like "Add/Edit/Cancel/Delete"
Do Telerik provide images for use ?
Do i need png or SVG File ?
CHATGPT tell me there is "Telerik.WinControls.UI.RadImageList"
but i can not find it
Hello,
I have a question about the behavior of the Text property in the CellFormatting event in GridView. I understand that GridView uses UI virtualization, and that I need to reset all modified properties for the rest of cells. But how does the Text property behave? I looked through the forum and found this example:
private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.Column.Name == "Description")
{
e.CellElement.Text = e.CellElement.Value + " END";
e.CellElement.Image = Properties.Resources.OutlookViewCalendar;
e.CellElement.DrawImage = true;
e.CellElement.TextImageRelation = TextImageRelation.TextBeforeImage;
}
else
{
e.CellElement.ResetValue(LightVisualElement.ImageProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.DrawImageProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.TextImageRelationProperty, ValueResetFlags.Local);
}
}
In this example, all properties are reset except Text. When I tried to reset Text, all cell texts disappeared, except the ones I set manually in CellFormatting. So I think Text has special behavior in CellFormatting, and it's always set from Value at the beginning and it's not affected by UI virtualization and reusing cells. Is that correct?
Also, just to be sure, in all examples I saw the if/else pattern. But functionally, is it the same as if I reset all properties I want to change at the beginning, and then set them later? Or can this have some performance impact? The reason I ask is that I use a switch with more branches, and it would be hard to track what needs to be reset in each one.
Here is my case. And I was also thinking, in my case, is it correct to reset the properties before checking ColumnIndex and RowIndex, or after?
private void rgv_CellFormatting(object sender, CellFormattingEventArgs e)
{
e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.PaddingProperty, ValueResetFlags.Local);
//e.CellElement.ResetValue(LightVisualElement.TextProperty, ValueResetFlags.Local);
if ((e.ColumnIndex < 0) || (e.RowIndex < 0))
return;
var ed = e.Row.DataBoundItem as TestParEditorItem;
if (ed == null)
return;
bool isSub = ed.IsSubItem;
bool hasSub = ed.HasSubItems;
switch (e.Column.Name)
{
case "colR":
case "colFi":
case "colR2":
case "colFi2":
if (isSub)
e.CellElement.Text = "";
break;
case "colMin":
case "colMax":
if (hasSub)
e.CellElement.Text = "";
break;
case "colAct":
e.CellElement.BackColor = SystemColors.ControlLight;
e.CellElement.NumberOfColors = 1;
e.CellElement.DrawFill = true;
break;
case "colType":
if (isSub)
{
e.CellElement.Text = ed.SubItemName;
e.CellElement.Padding = new Padding(30, 0, 0, 0);
}
else
{
e.CellElement.Padding = new Padding(0, 0, 0, 0);
}
break;
}
}Thanks.

i use VS2022 .net8
i create a new project to try RadTreeView
ptoject file as attached
but
1. The Text of Form shown on the VS2022 IDE is so small
2. At Run Time i can not see anything in the RadTreeView
can anyone help me
thanks a lot
1. i install Telerik UI for WinForm using Telerik_UI_For_WinForms_2025_4_1111.msi
2. i can use create Telerik Winform Project and can download License Key to my PC using VS2026
3. But i can not see Telerik Compoment in ToolBox and somethingwrong in the new Telerik Winform Project
J'ai 2 toolwindows.
J'ai une toolwindows 'filtre'. c'est pour la gestion des filtres. Elle se trouve à gauche
J'ai une toolwindows 'Aide'. C'est pour la gérer une aide. Elle se trouve à droite.
Je veux interdire la toolwindows 'filtre' d'être flotante. Elle doit toujours être à gauche.
Comment peut-on faire.
Merci
Thank's
Laurent.

Hi.
I'm facing and issue with displaying hierarchical data (self-referencing) in grid when missing parent items in data source - only part of data is displayed.
1. Add grid to form
1.var grid = new RadGridView {Dock = DockStyle.Fill};2.this.Controls.Add(grid);3.grid.Columns.Add("cName","Name","Name"); //Dummy column displaying Name
2. Setup self-referencing
1.var col1 = new GridViewTextBoxColumn("hiddenColumnId", "Id");2.var col2 = new GridViewTextBoxColumn("hiddenColumnParentId", "ParentId");3.grid.MasterTemplate.Columns.Add(col1);4.grid.MasterTemplate.Columns.Add(col2);5.grid.Columns["hiddenColumnId"].IsVisible = false;6.grid.Columns["hiddenColumnParentId"].IsVisible = false;7.grid.Relations.AddSelfReference(grid.MasterTemplate, "hiddenColumnId", "hiddenColumnParentId");
3. Create dummy data type
01.class Item02.{03. public Item(int id, string name, int? parentId = null)04. {05. Id = id;06. Name = name;07. ParentId = parentId;08. }09. 10. public int Id { get; set; }11. public string Name { get; set; }12. public int? ParentId { get; set; }13.}
4. Add new data source
01.var items = new List<Item>02.{03. new Item(1,"1"),04. new Item(2,"1.1",1),05. new Item(3,"1.2",1),06. new Item(7,"1.2.1",3),07. new Item(4,"2"),08. new Item(5,"2.1",4),09. new Item(6,"2.2",4)10.};11.grid.DataSource = items;
And as expected a correct tree structure is displayed
1.12.-1.13.-1.24.--1.2.15.26.-2.17.-2.2
However in my case due to busines logic I have only a subset of data - all except item "1" and "2".
Instead of ex
1.1.12.1.23.-1.2.14.2.15.2.2
I can see only children of first missing parent item. Although the number of rows is matching correct total number of item to be displayed (5) only part of items are visible (3).
1.1.12.1.23.-1.2.1
As a workaroud I can modify data source and remove parent assignement from objects if parent is missing in data source either on data preparation or DataBindingComplete event.
01.private void Grid_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)02. {03. var grid = sender as RadGridView;04. 05. // Get existing items06. var ids = new List<object>();07. foreach (var id in grid.Columns["hiddenColumnId"].DistinctValues)08. {09. ids.Add(id);10. }11. 12. // Remove missing parents13. foreach (var row in grid.Rows)14. {15. var parentId = row.Cells["hiddenColumnParentId"].Value;16. if (!ids.Contains(parentId))17. row.Cells["hiddenColumnParentId"].Value = null;18. }19.}
However this solution is not suitable, because it is modifying data providing inconsistant state - using that data in code I may falsly assume that the item does not have a parent while it has.
Any ideas how to solve this issue?
Regargs
Greg
