Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)
Suggested answer

Sorting records in subgrid

(0) ShareShare
ReportReport
Posted on by 110

Hi,

 I have a subgrid with columns name, age. I want to do a sorting function for which the conditions are name - descending and start date ascending. Start date field is not in the grid. But it is available in form and a default value is set always. How can I sort based on name and start date. I dont want to display start date in the view. Any suggestions?

*This post is locked for comments

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Sorting records in subgrid

    Doing it on the client side would be unsupported till Microsoft introduces required grid methods. If you wanted a supported customization, you'd probably have to use a retrieve multiple plugin to update that view in pre-retrievemultiple:

    nishantrana.me/.../plugin-on-retrieve-multiple-in-crm-2015

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Sorting records in subgrid

    You can modify the fetchXml of the grid control, and apply sorting or filtering to the fetchXml.

    There are quite a few samples on the web on how to do this, but here is one example:

    blog.navantis.com/dynamically-change-sub-grid-fetchxml-with-a-small-twist-fix

  • Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: Sorting records in subgrid

    No, or else with unsupported JavaScript, and you might suffer from clipping.

    I would advise against it.

    Maybe Nausher is referring to form customization?

  • sathish1109 Profile Picture
    sathish1109 110 on at
    RE: Sorting records in subgrid

    Can the fields be hidden from view?

  • Suggested answer
    Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: Sorting records in subgrid

    Add name and start date and make it hidden. Use javascript to make hidden.

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: Sorting records in subgrid

    It's possible with CRM customizations. Sorting columns must always be added to the view.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans