javascript - Refresh 'Related' grid on form in MSCRM 2011 -


on form in ms crm 2011, there section related on left side. in section, there entities related current 1 (1:n , n:n relations).

i'd refresh grid displaying related records javascript (grid in related section, not on form).

earlier, used:

   document.getelementbyid('area'+relationname+'frame').contentwindow.document.getelementbyid('crmgrid_'+relationname).refresh(); 

however, after rollup 12, code stopped working.

i tried code:

 var iframe = document.getelementbyid('area'+relationname+'frame');  iframe.src = iframe.src     

it refreshes grid, header of grid (view selector , search) disappears. works, it's not optimal.

is there better way it?

i think there no supported way of customization; but, still useful have working solution.

for me the

document.getelementbyid('area'+relationname+'frame').contentwindow.document.getelementbyid('crmgrid_'+relationname).control.refresh(); 

works fine, have sure document control located in, loaded. have run refresh() call 'onload' or 'ready' event handler of parent document.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -