"тнιѕ вℓσg ¢συℓ∂ ѕανє уσυя мσηєу ιƒ тιмє = мσηєу" - ∂.мαηנαℓу

Tuesday, 13 December 2011

How to refresh a Sub-Grid in CRM 2011 using Javascript

Code Snippet:
gridControl = Xrm.Page.ui.controls.get("yourSubGridName");
gridControl.refresh();
Alternatively, you could use the following.
document.getElementById("yourSubGridName").control.refresh();

5 comments:

  1. Hi there,
    how do i find out whats the name of my Sub Grid?

    ReplyDelete
  2. Hi
    tnx for your post. im usinf the document.getElementById("yourSubGridName").control.refresh(); but my grid keeps on refreshing. is it possible to make it refresh once only..
    tnx

    ReplyDelete
  3. Hey Dias, Saurin here, I was working on subgrids auto calc thing and this code helped me a lot, I was missing .control usage, thanks man.

    ReplyDelete
  4. please help me how to display all records in a subgrid as the form gets loaded

    ReplyDelete
  5. Hi,

    Can anyone have idea about adding values to subgrid from another field in crm 2013.

    Thanks in advance,
    Nagaraju

    ReplyDelete