I've a subgrid named TimeTickets, I try: var gridControl = document.getElementById('TimeTickets_d').control var ids = gridControl.get_allRecordIds(); here I've an error :Object doesn't support property or method 'get_allRecordIds'
As the error states the method get_allRecordIds is not supported for that particular control.
I'd suggest you use this instead
This does not work in CRM 2013. I am desperate for a solution to our broken code.
If the my post helped you please mark my post as the suggested answer
Hosk's Dynamic CRM Blog | @BenHosk | Rockstar365
Hosks CRM Dev YouTube Channel
This trick was originally thought up by James Wood - woodsworkblog.wordpress.com/.../crm-2013-adding-an-on-change-event-to-a-sub-grid
Hope this helps,
Read my Blog | Follow Me on Twitter | Rockstar365