Hi,
I have an editable grid and I cannot get gridContext using JS.
I have tries with OnChange and OnRecordSelect events, but its always null.
grid name is correct
Client API grid context in model-driven apps - Power Apps | Microsoft Learn
this.SelectRows = function (eContext) {
var formContext = eContext.getFormContext();
var gridContext = formContext.getControl("logs");
if (gridContext === null) {
setTimeout(LogOptimisationAudit.SelectRows(eContext), 3000);
return;
}
var myRows = gridContext.getGrid().getRows();
}






