This is a migrated thread and some comments may be shown as answers.

Treeview

3 Answers 64 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Manimozhi
Top achievements
Rank 1
Manimozhi asked on 22 Aug 2012, 05:37 AM
Why treeview nodes are in bold when we give disable for treeview control? This is happening only in windows 7. Suggest me some good ideas.

3 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 24 Aug 2012, 02:44 PM
Hi Manimozhi,

It seems there is an issue when the control is disabled and the font has regular style. I logged it in our public issue tracking system and you can find it here: http://www.telerik.com/support/pits.aspx#/public/winforms/12408.

Meanwhile, you can use the NodeFormatting event in the following manner to work around this case:
private void radTreeView1_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
{
    if (!e.TreeView.ElementTree.Control.Enabled)
    {
        e.NodeElement.ContentElement.Font = new Font(e.NodeElement.Font, FontStyle.Italic);
    }
}

I updated your Telerik points for this report.

All the best,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Manimozhi
Top achievements
Rank 1
answered on 27 Aug 2012, 11:47 AM
Hi,

We are using the Telerik Win forms Q3 2009 SP1. In that, We have the following issue in the tree view control.

Why treeview nodes are in bold when we give disable for treeview control? This is happening only in windows 7. Suggest me some good ideas.

NodeFormatting event is not there in our version. Kindly suggest me some good ideas as soon as possible. So that we can continue our production.
0
Svett
Telerik team
answered on 29 Aug 2012, 01:40 PM
Hello Manimozhi,

I am not able to give you alternative temporary solution. The issue is complex and it is caused by the internal theming mechanism for disabled controls.

Greetings,
Svett
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Treeview
Asked by
Manimozhi
Top achievements
Rank 1
Answers by
Svett
Telerik team
Manimozhi
Top achievements
Rank 1
Share this question
or