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

How to hide the "plus" sign on radpropertygrid

2 Answers 94 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 23 Feb 2017, 10:01 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Feb 2017, 11:55 AM
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.
0
OD
Top achievements
Rank 1
answered on 23 Feb 2017, 01:15 PM

Everything work fines now.

Thank you.

Tags
PropertyGrid
Asked by
OD
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
OD
Top achievements
Rank 1
Share this question
or