ASPxClientTreeListBatchEditApi.GetCellValue(nodeKey, columnFieldNameOrId) Method
Gets the value of the specified cell.
#Declaration
GetCellValue(
nodeKey: string,
columnFieldNameOrId: string,
initial?: boolean
): any
#Parameters
Name | Type | Description |
---|---|---|
node |
string | A zero-based integer value that specifies a visible index of a node containing the processed cell. |
column |
string | A string value that specifies the field name or unique identifier (the column’s Web |
initial | boolean |
#Returns
Type | Description |
---|---|
any | An object containing the specified cell’s value. |
#Remarks
The code sample below demonstrates how to use the GetCellValue method.
var x = MyTreeListClientName.batchEditApi.GetCellValue(0, "ProductName");
To get a new cell value (after the edit) in the ASPxClientTreeList.BatchEditEndEditing event handler, wrap the GetCellValue method call inside the JavaScript setTimeout function call to ensure that a cell value is already changed:
function onBatchEndEditing(s, e) {
window.setTimeout(function () {
var index = e.visibleIndex;
var col = TreeList.GetColumnByField("C2");
var res = TreeList.batchEditApi.GetCellValue(index, "C2",false);
console.log(res);
}, 10);
}
Note
The Getfalse
.