Intersoft WebGrid Documentation
AllowContextMenu Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > LayoutSet Class : AllowContextMenu Property






Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.")>
Public Property AllowContextMenu As Boolean
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Boolean
 
instance.AllowContextMenu = value
 
value = instance.AllowContextMenu
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.")]
public bool AllowContextMenu {get; set;}
Delphi 
public read-write property AllowContextMenu: Boolean; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
DefaultValueAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.")
public function get,set AllowContextMenu : boolean
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.")]
public: __property bool get_AllowContextMenu();
public: __property void set_AllowContextMenu( 
   bool value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets a value whether WebGrid's context menu is displayed when right clicked to valid object.")]
public:
property bool AllowContextMenu {
   bool get();
   void set (    bool value);
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

LayoutSet Class
LayoutSet Members

Tasks

How-to: Display context menu in WebGrid

Concepts

Advanced User Interactions

©2012 Intersoft Solutions Corp. All Rights Reserved.