web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Auto Refresh After Updating The Records On Sub Grid Using JavaScript

(0) ShareShare
ReportReport
Posted on by

hi experts
Am Created JavaScript That Selects Multiple Sub Grids Records Updates Based On ribbon button. its working properly their issues found.

but we have to do manually refresh list.after Updating Record 
is their any possible to create auto refresh after updating the records.

Please give some suggestion
thank you
Naveen

*This post is locked for comments

I have the same question (0)
  • Tobias Koller Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    I just debugged the Homepage and found an internal function.

    of course this is not really supported but please give it a try:

    document.getElementById("crmGrid").control.fireControlEvent("OnRefresh", Sys.EventArgs.Empty);
    
  • Pranesh M Juwale Profile Picture
    1,196 on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    Using IE's developer tools (press F12), try to get the grid name which need to be refreshed.

    try:

    document.all['gridname'].control.refresh();

    or

    window.parent.opener.document.getElementById("crmGrid").control.refresh();

  • katikidalanaveen Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    Sample-Image.png

  • katikidalanaveen Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    My Button placed on Home Page

  • katikidalanaveen Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    Sorry koller my mistake two screenshot script are not working. am tried code am not any error .  My Button Placed on Homepage of an Entity

  • Pranesh M Juwale Profile Picture
    1,196 on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    have you placed the button on form or record list. eg. opening a lead and getting the button or getting the button on the "open leads" list ?

    in other way.. are you refreshing the subgrid inside the form or the "open leads" subgrid ??

  • Tobias Koller Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    do you get any error-Messages? which 2 Methods are not working?

    maybe you can post a screenshot (of the Form where the subgrid and Buttons are shown) that I'm sure we are talking about the same Part in CRM.

  • katikidalanaveen Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    thanks Pranesh Juwale . Our Code Implemented on Button. Not on Form On load Event.

  • katikidalanaveen Profile Picture
    on at
    RE: Auto Refresh After Updating The Records On Sub Grid Using JavaScript

    And Koller the 2 Methods are not working and second thing our code Implemented when we select a record in sub-grid  on click of Button. Record will Update and that why we are trying to Auto Refresh sub grid.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans