Treeview

4 posts, 0 answers
  1. Manimozhi
    Manimozhi avatar
    8 posts
    Member since:
    Apr 2012

    Posted 22 Aug 2012 Link to this post

    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.
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 24 Aug 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Manimozhi
    Manimozhi avatar
    8 posts
    Member since:
    Apr 2012

    Posted 27 Aug 2012 Link to this post

    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.
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 29 Aug 2012 Link to this post

    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 >>
Back to Top