ActionCardListItemEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Supplies a materialized list card and its source record.
- C#
- VB.NET
public class ActionCardListItemEventArgs : EventArgs
Public Class ActionCardListItemEventArgs
Inherits 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
ActionCardListItemEventArgs(card, index, dataItem)
Initializes a list card event.
| Name | Type | Description |
|---|---|---|
| card | ActionCard | Materialized card. |
| index | Int32 | Zero-based source index. |
| dataItem | Object | Original source record retained on the server. |
Properties
Card
ActionCard: Gets the transient card.
DataItem
Object: Gets the original source record.
Index
Int32: Gets the source index.