You’re calling gridData.data.length, but I don’t see a gridData object defined in your controller. Shouldn’t that be gridOptions.data.length?
You’re calling gridData.data.length, but I don’t see a gridData object defined in your controller. Shouldn’t that be gridOptions.data.length?