Skip to main content
Version: 4.2

ActionCardListItemEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Supplies a materialized list card and its source record.

public class ActionCardListItemEventArgs : EventArgs

Cards are transient and are disposed when they leave the virtual window. Store persistent state in DataItem.

Example:

list.CardCreated += (sender, e) =>
{
e.Card.Actions.Add(new CardAction { Name = "open", Text = "Open" });
e.Card.ActionClick += (s, a) => MessageBox.Show(e.DataItem.ToString());
};

Constructors​

Instance member ActionCardListItemEventArgs(card, index, dataItem)​

Initializes a list card event.

NameTypeDescription
cardActionCardMaterialized card.
indexInt32Zero-based source index.
dataItemObjectOriginal source record retained on the server.

Properties​

Instance member Card​

ActionCard: Gets the transient card.

Instance member DataItem​

Object: Gets the original source record.

Instance member Index​

Int32: Gets the source index.