Skip to main content

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.

public class ItemClickEventArgs : 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​

Instance member ItemClickEventArgs(group, item, location)​

Initializes a new instance of the ItemClickEventArgs class.

NameTypeDescription
groupGroupThe group containing the clicked item.
itemItemThe clicked item.
locationPointThe 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​

Instance member Group​

Group: Returns the group containing the clicked item.

Instance member Item​

Item: Returns the clicked item.

Instance member 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​

NameDescription
dxKanban.ItemClickEventHandlerRepresents the method that will handle the ItemClick, ItemDoubleClick and ItemRightClick events of the dxKanban control.