Hi all,
On the 2015 on-prem version I used to apply a fetch xml filter on a subgrid through the SetParameter method.
On the 2016 on-prem this code doesn't look to work any more.
Did some one found a work-around to solve this issue?
Here is a sample code:
function FilterGrid()
{
debugger;
var objSubGrid = document.getElementById("gridName");
if (objSubGrid == null)
{
setTimeout(FilterGrid, 3000);
return;
}
else
{
debugger;
var FetchXml = "a fetch XML";
objSubGrid.control.SetParameter("fetchXml", FetchXml);
objSubGrid.control.Refresh();
}
}
I have also tryed window.parent.document.getElementById("gridName") but still doesn't work.
Thanks in advance for any help.






