Click or drag to resize

DataItemContextMenuConfiguration Class

The configuration class for a custom context menu that is be displayed within a DataGridWebPart.
Inheritance Hierarchy
SystemObject
  Colygon.MatchPoint.Core.ConfigurationBaseContextMenuConfigurationDataItemContextMenuItem
    Colygon.MatchPoint.Core.ConfigurationDataItemContextMenuConfiguration

Namespace:  Colygon.MatchPoint.Core.Configuration
Assembly:  Colygon.MatchPoint (in Colygon.MatchPoint.dll) Version: 2019.2.1.0
Syntax
C#
[SerializableAttribute]
public class DataItemContextMenuConfiguration : BaseContextMenuConfiguration<DataItemContextMenuItem>

The DataItemContextMenuConfiguration type exposes the following members.

Constructors
  NameDescription
Public methodDataItemContextMenuConfiguration
Initializes a new instance of the DataItemContextMenuConfiguration class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from BaseContextMenuConfigurationT.)
Top
Fields
  NameDescription
Public fieldContentClass
Specifies content classes for which this context menu should be displayed.
Public fieldContentType
Specifies the content type of items for which this context menu should be displayed.
Public fieldContextMenuProvider
Contains menu providers for this context menu.
(Inherited from BaseContextMenuConfigurationT.)
Public fieldItems
Contains menu items for this context menu.
(Inherited from BaseContextMenuConfigurationT.)
Public fieldMatchExpression
Specifies an expression that is expected to return 'true' if the context menu should be displayed for the given item. Use 'DataItem.PropertyName' to access the properties of the item. E.g.: 'DataItem.Category == "Global"'.
Public fieldName
Specifies the name of this context menu configuration.
(Inherited from BaseContextMenuConfigurationT.)
Public fieldRecursive
If enabled, all descendant tags are also matched.
Public fieldTag
Specifies a tag that has to exist on the item.
Public fieldUrlPrefix
Specifies an URL prefix of items for which this context menu should be displayed. The URL can be relative to the current web.
Top
Remarks
You can use this configuration class within the MatchPointConfiguration configuration file.

Please note that you need to enable the property ShowCustomContextMenu in order to display the context menu within a DataGrid.

Remarks
This is a MatchPoint configuration class.
See Also