I added a button on my subgrid named "lots_associes", and I want by clicking on this button javascript recover all selected records.
I tried all the solutions proposed as http://vikramxrm.blogspot.fr/2013/11/read-subgrid-records-ms-crm-2013-using.html
But it seems that the functions "getElementById ('lots_associes')" do not work while "Xrm.Page.ui.controls.get('lots_associes')" works. I have the good name of the grid.
Do you have any ideas?