locked
Subgrid in CRM 2013 : How to find readyState complete? RRS feed

  • Question

  • Hi,

    In CRM 2011, Our team was able to attach subgridOnLoad like this, Any workaround for CRM 2013? :

    function subGridOnload() 
    
    var grid = document.getElementById('grid_identifications'); 
     if (grid.readyState!="complete") 
    
     // delay one second and try again. 
     setTimeout(subGridOnload, 1000); 
     return; 
    
    // logic 
    }
    
    
    
    
    
    
    
    
    

    Tuesday, October 28, 2014 1:39 PM

Answers

  • This worked finally:

    http://dynamicsofdynamicscrm.wordpress.com/2014/10/24/adding-row-colours-to-crm-2013-sub-grids-dynamically-based-on-value-in-cells/

    Regards,

    Deepesh

    • Marked as answer by Deepesh161MVP Tuesday, October 28, 2014 4:15 PM
    Tuesday, October 28, 2014 4:15 PM

All replies

  • Hi ,

    You can do it like that ; You can call this code on load event of your form.

    var Subgrid = document.getElementById("yoursubgridid");
     if (Subgrid== null) {
     setTimeout(function () { FilterSubgrid(); }, 2000);
    //if the grid hasn’t loaded run this again when it has
     return;
     }

    Also you can check my blog

    Crm 2011/2013 Filtering SubGrid


    If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın http://crmpolataydin.wordpress.com

    • Proposed as answer by Mohd Saad Tuesday, October 28, 2014 3:19 PM
    Tuesday, October 28, 2014 3:01 PM
  • This worked finally:

    http://dynamicsofdynamicscrm.wordpress.com/2014/10/24/adding-row-colours-to-crm-2013-sub-grids-dynamically-based-on-value-in-cells/

    Regards,

    Deepesh

    • Marked as answer by Deepesh161MVP Tuesday, October 28, 2014 4:15 PM
    Tuesday, October 28, 2014 4:15 PM