How to enable border in the disagner without creating a new theme?

3 posts, 1 answers
  1. Grigoriy
    Grigoriy avatar
    7 posts
    Member since:
    Jun 2008

    Posted 08 May 2009 Link to this post

    Hi,

    Is there a way to use RadTreeView control with the same theme in different places with and without the border? Looks like drawing a border around the control is controlled by the theme and creating an extra theme doesn't seem to be reasonable just for this purpose. I found a work around by setting the RadTreeView.TreeViewElement.DrawBorder property to true. But it would be more logical and convinient to make at available in the Designer. Should i submit it as a feature request?

    Thanks
    Grigoriy
  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 12 May 2009 Link to this post

    Hello Grigoriy,

    Thank you for writing.
    This option is actually available during design time. You can select Edit UI Elements from the smart tag of RadTreeView. There you will see the TreeViewElement on the left and you will be able to set every property in the Property Grid on the right. The property you should use to show/hide treeview's border is RadTreeViewElement.DrawBorder.  You can also access this property runtime in the code (runtime) of your applicaiton.

    Please write back if you need further assistance.

    All the best,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Grigoriy
    Grigoriy avatar
    7 posts
    Member since:
    Jun 2008

    Posted 12 May 2009 Link to this post

    Thanks!
Back to Top