Skip to main content

ASPxClientGridViewBatchEditApi.GetCellTextContainer(visibleIndex, columnFieldNameOrId) Method

Gets a container holding a data cell content.

Declaration

GetCellTextContainer(
    visibleIndex: number,
    columnFieldNameOrId: string
): any

Parameters

Name Type Description
visibleIndex number

The row’s visible index.

columnFieldNameOrId string

A string value that is the column’s Field Name or ID.

Returns

Type Description
any

A HTML container element that contains the data cell’s content.

Remarks

Use the GetCellTextContainer method that allows you to get an HTML element in the DOM tree where the data cell content is located.

To specify whether a data item template should be overwritten in a data cell when its editing is completed, use the GridBatchEditSettings.AllowRegularDataItemTemplate property.

Example

This example demonstrates how to use the GetCellTextContainer method.

function GetControl(visibleIndex, column) {
    return ASPx.GetControlCollection().GetControlsByPredicate(function (c) {
        var parent = grid.batchEditApi.GetCellTextContainer(visibleIndex, column);
        return ASPx.GetIsParent(parent, c.GetMainElement());
    })[0];
}
See Also