Here i will provide the solutions which can be used at some point in Customizations in Dynamics CRM 2011.
I will provide the solution at when
We want to Save or
We want to Reload form
On refresh of Subgrid.
So here we go... (Note :- This solutions is for after Rollup 13 of MSD CRM 2011)
Make a Functions as below , give whichever name you prefer..
______________________________________________________________________
function onLoadofForm()
{
setTimeout("SubGridRefresh();", 2500);
}
function SubGridRefresh()
{
var grid = document.getElementById("<< yourGiridName >>");
if (grid)
{
grid.control.add_onRefresh(ReLoadForm);
}
}
function ReLoadForm()
{
Xrm.Page.data.entity.save(); //If you want to save form.
window.parent.location.reload(true); //If you want to reload form.
}
______________________________________________________________________
Now, put the function "onLoadofForm" on OnLoad event of Form.
That is what you needed.
Enjoy :-)
I will provide the solution at when
We want to Save or
We want to Reload form
On refresh of Subgrid.
So here we go... (Note :- This solutions is for after Rollup 13 of MSD CRM 2011)
Make a Functions as below , give whichever name you prefer..
______________________________________________________________________
function onLoadofForm()
{
setTimeout("SubGridRefresh();", 2500);
}
function SubGridRefresh()
{
var grid = document.getElementById("<< yourGiridName >>");
if (grid)
{
grid.control.add_onRefresh(ReLoadForm);
}
}
function ReLoadForm()
{
Xrm.Page.data.entity.save(); //If you want to save form.
window.parent.location.reload(true); //If you want to reload form.
}
______________________________________________________________________
Now, put the function "onLoadofForm" on OnLoad event of Form.
That is what you needed.
Enjoy :-)