Completed
Last Updated: 24 Nov 2011 10:47 by ADMIN
ADMIN
Stefan
Created on: 24 Nov 2011 10:47
Category: TreeView
Type: Bug Report
0
FIX. RadTreeView - the GradientStyle property of RadTreeNode is overriden by the theme, even though it is set locally
FIX. RadTreeView - the GradientStyle property of RadTreeNode is overriden by the theme, even though it is set locally
The first part of the issue, regarding RadTreeNode.BackColor is addressed.
There is no issue with the persistance of GradientStyle property. To persist the GradientStyle property you should set its value explicitly. Here is an example:
void radTreeView1_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
{
if (radTreeView1.SelectedNode != null)
{
if (e.Node == radTreeView1.SelectedNode)
{
e.NodeElement.BackColor = Color.Yellow;
e.NodeElement.BackColor2 = Color.White;
e.NodeElement.GradientStyle = Telerik.WinControls.GradientStyles.Linear;
e.NodeElement.DrawFill = true;
e.NodeElement.NumberOfColors = 2;
return;
}
}
e.NodeElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.BackColor2Property, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.GradientStyleProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.DrawFillProperty, Telerik.WinControls.ValueResetFlags.Local);
e.NodeElement.ResetValue(LightVisualElement.NumberOfColorsProperty, Telerik.WinControls.ValueResetFlags.Local);
}
0 comments