ItemClickEventArgs
Namespace: Wisej.Web.Ext.DevExtreme
Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)
Provides data for the ItemClick, ItemDoubleClick and ItemRightClick events of the dxKanban control.
- C#
- VB.NET
public class ItemClickEventArgs : EventArgs
Public Class ItemClickEventArgs
Inherits EventArgs
Example:
The following example shows the title and the column of the card that the user double-clicks.
this.dxKanban1.ItemDoubleClick += (s, e) =>
{
AlertBox.Show($"{e.Item.Title} is in {e.Group.GroupName}");
};
Constructors
ItemClickEventArgs(group, item, location)
Initializes a new instance of the ItemClickEventArgs class.
| Name | Type | Description |
|---|---|---|
| group | Group | The group containing the clicked item. |
| item | Item | The clicked item. |
| location | Point | The location of the mouse pointer when the item was clicked. |
Example:
The following example calls the ItemClick handler of the form with the first card of the first column.
var group = this.dxKanban1.Groups[0];
var args = new dxKanban.ItemClickEventArgs(group, group.Items[0], Point.Empty);
dxKanban1_ItemClick(this.dxKanban1, args);
Properties
Group
Group: Returns the group containing the clicked item.
Item
Item: Returns the clicked item.
Location
Point: Returns the location of the mouse pointer when the item was clicked.
The location is in client coordinates of the browser window (the clientX and clientY values of the browser's mouse event), not relative to the dxKanban control.
Example:
The following example shows a context menu where the user right-clicks a card.
this.dxKanban1.ItemRightClick += (s, e) =>
{
this.contextMenu1.Tag = e.Item;
this.contextMenu1.Show(e.Location);
};
Used By
| Name | Description |
|---|---|
| dxKanban.ItemClickEventHandler | Represents the method that will handle the ItemClick, ItemDoubleClick and ItemRightClick events of the dxKanban control. |