locked
Filter subgrid in CRM 2016 RRS feed

  • Question

  • Hi, did anybody figure out how to filter a subgrid in CRM 2016. In 2015 I could inject fetch xml query by getting subgrid control with document.getElementById and calling SetParameter method...

    This doesn't work now. I tried with new GridControl methods from SDK, used developer tools, found "remove" method on collection returned by "getRows" method, but despite it removes the row from collection, it does not get reflected in user interface.

    So many developers need this, and they keep searching for unsupported ways version after version. Why does'nt Microsoft just enable this via supported api?

    Thanks in advance

    Friday, April 22, 2016 1:41 PM

All replies

  • Try using window.parent.document.getElementById("subgridname"); instead of document.getElementById("subgridname"); to get sub grid control in CRM 2016 in unsupported way.

     

    The rest of the code should remain the same as you were using in CRM 2015.

    Thanks,

    Sam


    Dynamics CRM MVP | Inogic | http://inogic.blogspot.com| news at inogic dot com

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, April 25, 2016 6:30 AM
  • Hi, unfortunately it doesn't work, it gets the element, but it is missing "control" property. In 2015 I could Write document.getElementById("subgridname").Control.SetParameter(...).
    Monday, April 25, 2016 10:39 AM