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)

document.getElementById("subgrid_unique_name"); returns null

(0) ShareShare
ReportReport
Posted on by 2,116

I have a connection subgrid added on a queue item form. I want to set the view of the subgrid dynamically using fetchXML query. But when i try to get the subgrid control using "document.getElementById("subgrid_unique_name");", it returns null. 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mandar Joshi Profile Picture
    2,116 on at
    Re: document.getElementById("subgrid_unique_name"); returns null

    On working more on this, i just got it resolved on my own. The issue in my case was that HTML DOM don't return the control until it is loaded (though it show up on form). So as a work around, i just added a timeout until the control is available.

  • Community Member Profile Picture
    on at
    RE: document.getElementById("subgrid_unique_name"); returns null

    how did you add the timeout?

  • Community Member Profile Picture
    on at
    RE: document.getElementById("subgrid_unique_name"); returns null

    Hi Mandar after DOM is loaded when try to get the object from console it is returning null by using  function      document.getElementById

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
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans