i have subgrid named timetickets
, try:
var gridcontrol = document.getelementbyid('timetickets_d').control; var ids = gridcontrol.get_allrecordids();
but following error:
object doesn't support property or method 'get_allrecordids'
notes:
- crm rollup update 13
- browser: internet explorer 9
i solved in way:
var grid = xrm.page.ui.controls.get('timetickets')._control; if (grid.get_innercontrol() == null) { settimeout(subgridonload, 1000); return; } else if (grid.get_innercontrol()._element.innertext.search("loading") != -1) { settimeout(subgridonload, 1000); return; } var ids = grid.get_innercontrol().get_allrecordids();
Comments
Post a Comment