ASP.NET Core MVC Controls | ComponentOne
In This Topic
    DataChangeEventArgs Class
    In This Topic
    File
    wijmo.grid.immutable.js
    Module
    wijmo.grid.immutable
    Base Class
    EventArgs

    Provides data for the dataChanged event.

    Constructor

    Properties

    Events

    Constructor

    constructor

    constructor(action: DataChangeAction, oldItem: any, newItem: any, itemIndex: any): DataChangeEventArgs
    

    Initializes a new instance of the DataChangeEventArgs class.

    Parameters
    • action: DataChangeAction

      Type of action that caused the event to fire.

    • oldItem: any

      Original item that was removed or changed.

    • newItem: any

      New item that was added or changed.

    • itemIndex: any

      Index of the item.

    Returns
    DataChangeEventArgs

    Properties

    action

    Gets the action that caused the event to fire.

    Type
    DataChangeAction

    itemIndex

    Gets an index of the item affected by the change in the itemsSource array, depending on the action: * Remove: the removed item index * Add: the added item index * Change: the changed item index

    Type
    any

    newItem

    Gets an item with changes, depending on the action: * Remove: a null value. * Add: the new added item * Change: the cloned item with modifications

    Type
    any

    oldItem

    Gets an existing item affected by the change, depending on the action: * Remove: the removed item from the itemsSource array. * Add: a null value. * Change: the original item from the itemsSource array (not modified, the cloned item with the modifications is in the newItem property).

    Type
    any

    Events

     

    Static empty

    Provides a value to use with events that do not have event data.

    Inherited From
    EventArgs
    Arguments
    EventArgs