How to hide the "plus" sign on radpropertygrid

3 posts, 1 answers
  1. QuizzBox
    QuizzBox avatar
    65 posts
    Member since:
    Jan 2011

    Posted 23 Feb Link to this post

    Hello,

    I'm using Q1 2017 radcontrols for winforms (vb.net).

    When you bind the radpropertygrid to an objet that have a font property for instance, you have in the radpropertygrid an arrow appearing.

    My question is : is-it possible to disable or hide the "plus" sign ?

    Thanks in advance.

     

    Best regards.

  2. Answer
    Dess
    Admin
    Dess avatar
    2107 posts

    Posted 23 Feb Link to this post

    Hello Jean-Marc,

    Thank you for writing.  

    In order to hide the expander item, it is appropriate to handle the ItemFormatting event and use the following code snippet:
    private void radPropertyGrid1_ItemFormatting(object sender, Telerik.WinControls.UI.PropertyGridItemFormattingEventArgs e)
    {
        PropertyGridItemElement el = e.VisualElement as PropertyGridItemElement;
        if (el != null)
        {
            el.ExpanderElement.ExpanderItem.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        }
    }

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. QuizzBox
    QuizzBox avatar
    65 posts
    Member since:
    Jan 2011

    Posted 23 Feb Link to this post

    Everything work fines now.

    Thank you.

Back to Top