Question
Advanced Grid - EditedTable Not Working
Hi guys,
I am working with advanced grid from marketplace. After many tries I am not able to get any data from the EditedTable property.
Scope:
I have service which is providing dynamic data for my Ad.Grid. It has 1 editable checkbox column (btw. there is a wrong definition of editable column in official documentation. Will report it as an bug later)
this.handleRowEditsCallback = function (stage, rows) {
var editedRowsInfoTable = {
"dataShape": {
"fieldDefinitions": infoTableDataShape
},"rows": rows
};
if (thisWidget.getProperty("IsEditable", false) === true) {
if (stage === 0) {
thisWidget.jqElement.triggerHandler('EditCellStarted');
} else if (stage === 2) {
thisWidget.setProperty('EditedTable', editedRowsInfoTable);
thisWidget.jqElement.triggerHandler('EditCellCompleted');
}
}
};
And it is assing to the gridAdvanced def which is:
gridAdvanced.rowEditCallback = thisWidget.handleRowEditsCallback;
This function is not invoked at all. Widget events like:
- EditCellStarted
- EditCellCompleted
are not invoked as well.
Any ideas what I am doing wrong? Is this maybe a bug?
I am using ThingWorx 8.2.1.
Thanks,
Adam

