Click or drag to resize
KaxContextMenuTargets Property
Gets the collection containing the targets to which right-click KaxContextMenu will attach.

Namespace: Kettic.AspNet.Controls
Assembly: 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; }

Property Value

Type: ContextMenuTargetCollection
A ContextMenuTargetCollection containing the targets to which KaxContextMenu will attach.
Remarks

KaxContextMenu 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