Skip to main content
All docs
V24.2

ASPxClientTreeListClipboardCellPastingEventArgs.cellInfo Property

Obtains information about the processed cell.

Declaration

cellInfo: ASPxClientTreeListCellInfo

Property Value

Type Description
ASPxClientTreeListCellInfo

Information about the processed cell.

Remarks

The following example illustrates how to modify data before pasting to the control in the ClipboardCellPasting event handler:

Web Forms:

<dx:ASPxTreeList ID="TreeList1" runat="server" ...>
    <ClientSideEvents 
        ClipboardCellPasting="onClipboardCellPasting" />
    <SettingsEditing Mode="Batch">
        <BatchEditSettings EnableMultipleCellSelection="True" />
    </SettingsEditing>
</dx:ASPxTreeList>
function onClipboardCellPasting(s, e) {
    if (e.cellInfo.column.fieldName == 'CategoryID') {
        // your code
        e.cancel = true;
    }
    else {
      e.newText += " copy"; 
    }
}

MVC:

@Html.DevExpress().TreeList(settings => {
    settings.Name = "treeList";
    settings.ClientSideEvents.CellSelectionChanging = "function (s, e) { 
        if (e.cellInfo.column.fieldName == 'CategoryID') {
            // your code
            e.cancel = true;
        }
        else {
          e.newText += " copy"; 
        }
    }"; 
    settings.Columns.Add("CategoryID");
    ...
}).Bind(Model).GetHtml()
See Also