This blog aims to provide some technical tips about Microsoft Azure & Dynamics 365 CRM - D. MANJALY
Monday, 12 December 2011
How to retrieve the Selected Record Ids of a Sub Grid in CRM 2011 using javascript
How to retrieve the Selected Record Ids of a Sub Grid in CRM 2011 using javascript Code Snippet: var gridControl = document.getElementById("yourSubGridName").control; var ids = gridControl.get_selectedIds();
Did you copy and paste the code? Sometimes the double quotes would cause problems when pasted from web. So delete the double quotes and type manually from your keyboard. your code looks alright if the sub-grid name is correct. Pls try this
hi i am using the above code and it is not working for me. kindly help me.
ReplyDeleteNote: my code is
var gridControl = document.getElementById("purposegrid").control;
here "purposegrid" is my sub-grid name.
Hi,
DeleteDid you copy and paste the code?
Sometimes the double quotes would cause problems when pasted from web. So delete the double quotes and type manually from your keyboard. your code looks alright if the sub-grid name is correct. Pls try this