I have a JavaScript function which identifies if a subgrid has any rows. This works very well for pre submit validation but i would also like to perform this validation when i add or remove a row from the subgrid. I have tried the following code but adding or removing a row from the power apps portal grid does not seem to trigger these events .
Can anyone recommend a solution
Thanks Gary
Someone else may have an easier way, but you may need to look at using a MutationObserver to pickup changes to the DOM. This post has an example of one for the SharePoint grid https://powerusers.microsoft.com/t5/Power-Apps-Portals/SharePoint-Document-Location-Subgrid-quot-loaded-quot-event-in/m-p/1340839#M11880
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43