KaxContextMenuTargets Property |
Gets the collection containing the targets to which right-click
KaxContextMenu will attach.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public virtual ContextMenuTargetCollection Targets { get; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public Overridable ReadOnly Property Targets As ContextMenuTargetCollection
Get
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
virtual property ContextMenuTargetCollection^ Targets {
ContextMenuTargetCollection^ get ();
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
abstract Targets : ContextMenuTargetCollection with get
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
override Targets : ContextMenuTargetCollection with get
Property Value
Type:
ContextMenuTargetCollectionA
ContextMenuTargetCollection
containing the targets to which KaxContextMenu will attach.
RemarksKaxContextMenu can attach to four target types: ASP.NET control, element on the page,
document, set of client-side elements, specified by tagName.
Examples
This example demonstrates how to specify that the KaxContextMenu will be displayed
when a specific textbox and all images on the page clicked.
<img src="http://www.kettic.com/images/Homepage/ketticLogo.gif" />
<img src="http://www.kettic.com/demos/aspnet/Prometheus/Controls/Img/productLogo.gif" />
<asp:TextBox ID="TextBox1" runat="server"/gt;
<Kettic:KaxContextMenu ID="KaxContextMenu1"
runat= "server">
<Targets>
<Kettic:KaxContextMenuControlTarget ControlID="TextBox1"/>
<Kettic:KaxContextMenuTagNameTarget TagName="img"/>
</Targets>
</Kettic:KaxContextMenu>
See Also