Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is there any way to show custom values in subgrid without fetch XML

Posted on by 40

I want JavaScript code to display custom records in sub grid view.

*This post is locked for comments

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    Hi,

    You can use custom js framework to have custom edit like this: https://docs.sencha.com/extjs/6.0.2/classic/Ext.grid.Panel.html have used it some implementations worked well !

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    Hi

    Changing out of the box subgrid html using Javascript to display or change the behaviour of the subgrid is not supported and I would not recommend doing that as in the long run future updates may break the page or form.

    However, if you definitely want a custom subgrid you can use create a custom HTML web resource and query the data (using web api or other options) and display the records as you like. This is a supported approach as you are not changing any of the system behaviours that could change in the future.

    You can use the web api to query the data and then use your own html markup and styles to render the records

    docs.microsoft.com/.../web-api-query-data-sample-client-side-javascript

    docs.microsoft.com/.../xrm-webapi

    Hope this helps

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    Hi Shadendra,

    Would you mind to close the thread by marking the answer.

  • Shadendra Profile Picture
    Shadendra 40 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    okay thanxxx

  • Suggested answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    No it wont be possible

  • Shadendra Profile Picture
    Shadendra 40 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    okay thanxx.. But using Xrm.web APi can we de?

  • Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    Hi Again,

    There is no way to update view without updating fetch

  • Suggested answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Is there any way to show custom values in subgrid without fetch XML

    Hi Shadendra,

    What do you mean by custom records, if you wants to update filters (so that it changes records) or layoutxml (that changes columns in view) then follow similar  thread -community.dynamics.com/.../203026

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans