I have a Dojo form and I am using validation. Everything is working fine for my regular fields and validations. My form contains a DataGrid that is initially empty and the user can add rows. I want my form validation to check that there is at least one row in the table. The validation of fields in the table is working fine but I need to ensure that they have added at least one row.
I tried something like this but it didn't work (ie. the function wasn't called when the rest of the form was validated):
_myGrid.validator = function() {
debugger;
console.log("data", _myStore.objectStore.data);
}