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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2016 sub grid scroll bar and paging issue

(0) ShareShare
ReportReport
Posted on by

I'm not certain if this is a similar issue to this https://community.dynamics.com/crm/f/117/t/163681 but we have some sub grids that are being populated with dummy entities via plugins, so in effect, we call a RetrieveMultiple for the dummy entity which causes the a plugin to fire, the plugin code gets data from different sources, amalgamates it together, populates a list of the dummy entities, then returns this list.

The problem we are seeing is that when the sub grid is populated, there is no vertical scroll bar and also the paging options do not seem to be honoured.

So for instance, we have a grid set up to show 8 rows and to not automatically expand:

3527.Grid.jpg

When this grid is actually populated, all 14 records are displayed on the first page, the paging control is disabled, and there is no vertical scroll bar:

Populated-Grid.jpg

As a work around, I can make the grid display 250 records and to automatically expand, as the grid is in a section that is closed by default this is not too bad, but as there are many sub grids on this form, and they could all contain many records, if a user wanted to view a couple of these at a time the form would look pretty bad, plus they may not even be able to due to the size of the grids.

We had a similar issue on 2013 which we worked around with some JavaScript but this is no longer possible on 2016 as we need this form to work both on premise and online.

Has anyone else experienced anything similar and does anyone have any ideas about this and whether there might be something else to try?

*This post is locked for comments

I have the same question (0)
  • yoel Profile Picture
    10 on at

    "We had a similar issue on 2013 which we worked around with some JavaScript but this is no longer possible on 2016 as we need this form to work both on premise and online."

    could you describe how you solved this issue in 2013?

  • Mohamed Rashwan Profile Picture
    on at

    Did you sort this problem out? could you pls share your solution?

  • Community Member Profile Picture
    on at

    Hi,

    Sorry, I didn't see the query about how we solved this in 2013.  We used the fix as detailed in the linked thread above (https://community.dynamics.com/crm/f/117/t/163681).

    Gavin

  • Community Member Profile Picture
    on at

    Hi,

    No, I contacted Microsoft support and raised this as an issue.  After some internal discussion they decided this is working as expected and is by design, therefore is not a bug, so would not be looking into this further.

    Sorry I can't help any further with this, my opinion is that it's a bug, if the functionality is there to allow you to dynamically populate sub grids I would expect the grid would be able to handle the data it has received and allow paging or provide a scroll bar to allow you to view the data.

    If you find another way around this, I would be interested to know what it is.

  • Suggested answer
    Mohamed Rashwan Profile Picture
    on at

    yes I found another way :)

    The returned EntityCollection will need to have information about paging. You basically need to include only subset of your results based on the PageInfo.Count and set MoreRecords to true to indicate there are more records to be returned. Also set TotalRecordCount to indicate the total number of records expected. Then always check for PageInfo.PageNumber to know which subset of your results to return.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans