Class
PropertyGridItemBase

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public abstract class PropertyGridItemBase : INotifyPropertyChanged

Inheritance: objectPropertyGridItemBase

Derived Classes: PropertyGridGroupItemPropertyGridItem

Implements: INotifyPropertyChanged

Constructors

PropertyGridItemBase(PropertyGridTableElement)

Declaration

cs-api-definition
public PropertyGridItemBase(PropertyGridTableElement propertyGridElement)

Parameters

propertyGridElement

PropertyGridTableElement

Fields

IsEnableState

Declaration

cs-api-definition
protected const int IsEnableState = 8

Field Value

int

IsExpandedState

Declaration

cs-api-definition
protected const int IsExpandedState = 2

Field Value

int

IsModifiedState

Declaration

cs-api-definition
protected const int IsModifiedState = 16

Field Value

int

IsVisibleState

Declaration

cs-api-definition
protected const int IsVisibleState = 4

Field Value

int

SuspendNotificationsState

Declaration

cs-api-definition
protected const int SuspendNotificationsState = 1

Field Value

int

state

Declaration

cs-api-definition
protected BitVector32 state

Field Value

BitVector32

text

Declaration

cs-api-definition
protected string text

Field Value

string

Properties

ContextMenu

Gets or sets the context menu associated to the item.

Declaration

cs-api-definition
public virtual RadContextMenu ContextMenu { get; set; }

Property Value

RadContextMenu

Returns an instance of RadDropDownMenu that is associated with the item. The default value is null.

Remarks

This property could be used to associate a custom menu and replace the property grid's default. If the context menu is invoked by right-clicking an item, the property grid's menu will not be shown and the context menu assigned to this item will be shown instead.

Description

Gets or sets the description associated with this item.

Declaration

cs-api-definition
public virtual string Description { get; set; }

Property Value

string

Enabled

Gets or sets a value indicating whether the item can respond to user interaction.

Declaration

cs-api-definition
public virtual bool Enabled { get; set; }

Property Value

bool

The default value is true.

Expandable

Gets a value indicating whether this item is expandable.

Declaration

cs-api-definition
public abstract bool Expandable { get; }

Property Value

bool

Expanded

Gets or sets a value indicating whether this item is expanded.

Declaration

cs-api-definition
public virtual bool Expanded { get; set; }

Property Value

bool

true if this item is expanded; otherwise, false.

GridItems

Gets the child items list associated with this item.

Declaration

cs-api-definition
public abstract PropertyGridItemCollection GridItems { get; }

Property Value

PropertyGridItemCollection

Image

Gets or sets the image of the node.

Declaration

cs-api-definition
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image Image { get; set; }

Property Value

Image

ImageIndex

Gets or sets the left image list index value of the image displayed when the tree node is not selected.

Declaration

cs-api-definition
[RelatedImageList("PropertyGrid.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.NoneExcludedImageIndexConverter, Telerik.WinControls.UI.Design, Version=2026.1.217.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual int ImageIndex { get; set; }

Property Value

int

ImageKey

Gets or sets the key for the left image associated with this tree node when the node is not selected.

Declaration

cs-api-definition
[RelatedImageList("PropertyGrid.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.RadImageKeyConverter, Telerik.WinControls.UI.Design, Version=2026.1.217.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public string ImageKey { get; set; }

Property Value

string

ItemHeight

Gets or sets the height of the item.

Declaration

cs-api-definition
public int ItemHeight { get; set; }

Property Value

int

The default value is 20.

Label

Gets or sets the text associated with this item.

Declaration

cs-api-definition
public virtual string Label { get; set; }

Property Value

string

Level

Gets a value indicating how deep in the hierarchy this propety is.

Declaration

cs-api-definition
public int Level { get; }

Property Value

int

Name

Gets the property name

Declaration

cs-api-definition
public abstract string Name { get; }

Property Value

string

Parent

Gets the parent item for this item.

Declaration

cs-api-definition
public virtual PropertyGridItemBase Parent { get; }

Property Value

PropertyGridItemBase

PropertyGridTableElement

Gets the parent property grid that the item is assigned to.

Declaration

cs-api-definition
public virtual PropertyGridTableElement PropertyGridTableElement { get; }

Property Value

PropertyGridTableElement

Selected

Gets or sets a value indicating whether this item is selected.

Declaration

cs-api-definition
public virtual bool Selected { get; set; }

Property Value

bool

true if this item is selected; otherwise, false.

Tag

Gets or sets the tag object that can be used to store user data, corresponding to the item.

Declaration

cs-api-definition
public virtual object Tag { get; set; }

Property Value

object

The tag.

ToolTipText

Gets or sets the tool tip text associated with this item.

Declaration

cs-api-definition
public virtual string ToolTipText { get; set; }

Property Value

string

Visible

Gets or sets a value indicating whether this instance is visible.

Declaration

cs-api-definition
public virtual bool Visible { get; set; }

Property Value

bool

true if this instance is visible; otherwise, false.

Methods

Collapse()

Collapses the item.

Declaration

cs-api-definition
public virtual void Collapse()

EnsureVisible()

Ensures that this item is visible in the content of the RadPropertyGridElement.

Declaration

cs-api-definition
public virtual void EnsureVisible()

Expand()

Expandes the item.

Declaration

cs-api-definition
public virtual void Expand()

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Declaration

cs-api-definition
public virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)

Parameters

args

PropertyChangedEventArgs

OnNotifyPropertyChanged(string)

Declaration

cs-api-definition
public virtual void OnNotifyPropertyChanged(string name)

Parameters

name

string

ResumePropertyNotifications()

Resumes property notifications after a previous SuspendPropertyNotifications call.

Declaration

cs-api-definition
public void ResumePropertyNotifications()

Select()

Selects the grid tiem.

Declaration

cs-api-definition
public virtual void Select()

SetBooleanProperty(string, int, bool)

Declaration

cs-api-definition
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)

Parameters

propertyName

string

propertyKey

int

value

bool

Returns

bool

SuspendPropertyNotifications()

Allows PropertyChanged notifications to be temporary suspended.

Declaration

cs-api-definition
public void SuspendPropertyNotifications()

Update(UpdateActions)

Declaration

cs-api-definition
protected virtual void Update(PropertyGridTableElement.UpdateActions updateAction)

Parameters

updateAction

PropertyGridTableElement.UpdateActions

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged