Changing the Indeterminate node image

6 posts, 1 answers
  1. Edward Talbot
    Edward Talbot avatar
    6 posts
    Member since:
    Oct 2009

    Posted 11 Jan 2011 Link to this post

    Hi all,

    I have a TreeView which is in TriState mode, which works fine but for one cosmetic issue.  On every other TreeView I've used, any node which is in the "Indeterminate" state is filled-in so it looks like a solid box.

    e.g. http://www.codeproject.com/KB/tree/Three_State_TreeView/ThreeStateTreeView2.png

    However, in the Telerik TreeView, the node is a greyed-out tickbox.  To my eyes though, this doesn't look distinctive enough.  Can I make the Telerik TreeView achieve the same effect?

    Thanks
    Eddie
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Jan 2011 Link to this post

    Hello,

    As far as I'm aware, this cannot be changed at the moment. The nodes contain an options element which is the checkbox, but this is private. There will be a major update to the RadTreeView in Q1 2011 which is due out the first half of March. You can see the rodmap here.
    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Edward Talbot
    Edward Talbot avatar
    6 posts
    Member since:
    Oct 2009

    Posted 11 Jan 2011 Link to this post

    Thanks Richard.

    Although the standard Microsoft TreeView does not support TriState out-of-the-box, it does supply a StateImageList property, and from there you can customise it to perform as a TriState treeview.  This has been my solution so far.

    The .NET Framework actually supplies the images in the VisualStyles.VisualStyleElement.Button.CheckBox.MixedNormal area of System.Windows.Forms.

    It is disappointing that no similar customization exists in the Telerik alternative, despite the large amount of theming available in other ways.  However I hope you can put something in the next release.

    Regards,
    Eddie
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Jan 2011 Link to this post

    Hi Eddie,

    Sadly, I don't have any control over the release (I'm just another forum user like yourself), but from the roadmap, I see that the RadTreeView is going to be converted to use the new UI Virtualization data layer, meaning that it will be much easier to customise, just like the RadGridView. In the meantime, if I find a way of doing it however, I'll be sure to let you know.

    regards,
    Richard
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 14 Jan 2011 Link to this post

    Hello guys,

    This feature is currently not supported by the RadTreeView component. As Richard said, we are currently refactoring RadTreeView planning to release the updated component in Q1 2011. We will include this functionality and the possibility to customize the different states of the checkbox when the control is in this mode.

    Thank for your comments and feedback.

    All the best,
    Julian Benkov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  7. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 18 Mar 2011 Link to this post

    Hi guys,

    I am happy to inform you that in Q1 2011 we introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out.
    For more information about this release, please refer to this blog post.
     
    All the best,
    Stefan
    the Telerik team
Back to Top
UI for WinForms is Visual Studio 2017 Ready