Since the rollup 12 update we can't use this javascript code anymore to refresh grid
from ribbon button onClick (ribbon on grid page)
window.document.all.crmGrid.Refresh();
or from ribbon button onClick (ribbon on homepage) to refresh parent grid
window.top.opener.document.getElementById('crmGrid').Refresh();
How we should refresh grid now?
Since the rollup 12 update we can't use this javascript code anymore to refresh grid
from ribbon button onClick (ribbon on grid page)
window.document.all.crmGrid.Refresh();
or from ribbon button onClick (ribbon on homepage) to refresh parent grid
window.top.opener.document.getElementById('crmGrid').Refresh();
How we should refresh grid now?
Share Improve this question asked Feb 13, 2013 at 13:25 GennadyGennady 411 silver badge7 bronze badges2 Answers
Reset to default 7It no longer works because the method you were using was unsupported. I assume that you are referring to updating a subgrid on a form. The correct way to refresh a grid is to use the refresh
method of the grid control as documented here
Suppose you need to refresh form and Maingrid(from where record was opened).
//Refreshing form
window.location.reload(true);
//Refreshing Maingrid
window.parent.opener.document.getElementById("crmGrid").control.refresh();
I have tried in CRM Online(update Roll 12).
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745063256a4609097.html
评论列表(0条)