ASPxClientGridViewBatchEditApi.GetCellTextContainer(visibleIndex, columnFieldNameOrId) Method
In This Article
Gets a container holding a data cell content.
#Declaration
TypeScript
GetCellTextContainer(
visibleIndex: number,
columnFieldNameOrId: string
): any
#Parameters
Name | Type | Description |
---|---|---|
visible |
number | The row’s visible index. |
column |
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
Note
For a full example, refer to ASPx
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