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)

CRM 2013 Subgrid Page Navigation Disappears

(4) ShareShare
ReportReport
Posted on by

If there are more rows than what is set to show in a subgrid within a Form you get (to the right of the subgrid) navigation buttons to load the next page of records. I have noticed however that when you get to the last page the navigation buttons disappears - this means users can't navigate back to the previous page or the first page. Is anyone else experiencing this? Any advice or is it just a matter of waiting for this to be fixed in a future Rollup? 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Hi TS2a,

    Can you please give me your build number?

    Regards,

    Vivek

  • TS2a Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Hi Vivek

    We are at Build Number: 6.0.3.106 (DB 6.0.3.106).

    We have just had Rollup 3 installed. Unfortunately, I am not able to verify if this issue occurred in previous builds.

  • Lisa Duong Profile Picture
    10 on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    I am experiencing this with CRM Online in both the Outlook Plugin and Internet Explorer.  I am fairly certain this began happening rather recently, but can't give an exact time frame. I have to refresh my form to get back to the prior subgrid page.

    CRM Online 6.1.1.123

    Outlook 6.1.0.581.

    -Lisa

     

  • TS2a Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Thanks for your reply Lisa. It confirms that I am not alone experiencing this.

    Unfortunately I have not heard anything from Microsoft so I am not sure they are even aware of this.

  • Suggested answer
    Alex Sorokoletov Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    This is still reproduced on Microsoft Dynamics® CRM Online Spring '14 (6.1.1.123) (DB 6.1.1.123)

    I was able to fix this with a script that is placed on a form:

    /* how to fix disappearing paging in CRM in subgrids */

    Mscrm.GridControlLite.prototype.updateVisibility_backup_proto = Mscrm.GridControlLite.prototype.updateVisibility;
    Mscrm.GridControlLite.prototype.updateVisibility = function (totalRecordCount, recordsPerPage, statusBar) {
        if (!IsNull(statusBar) && this.get_gridType() === Mscrm.GridControl.inlineSubGrid) {
            /*
    if (totalRecordCount > recordsPerPage)
    statusBar.style.visibility = "visible";
    else  if (!this.$0_3.get_moreRecords())
    statusBar.style.visibility = "hidden";
    */
            statusBar.style.visibility = "visible";
            this.handleStatusBar()
        }
    }
    $P_CRM('.ms-crm-ListControl-Ex-Lite').each(function () {
        var subGridId = $(this).attr('id');
        var component = $find(subGridId);
        if (component) {
            /* fix broken subgrid statusbar */
            component.updateVisibility_backup = component.updateVisibility;
            component.updateVisibility = function (totalRecordCount, recordsPerPage, statusBar) {
                if (!IsNull(statusBar) && this.get_gridType() === Mscrm.GridControl.inlineSubGrid) {
                    /*
    if (totalRecordCount > recordsPerPage)
    statusBar.style.visibility = "visible";
    else  if (!this.$0_3.get_moreRecords())
    statusBar.style.visibility = "hidden";
    */
                    statusBar.style.visibility = "visible";
                    this.handleStatusBar()
                }
            }
            if (console && console.log)
                console.log('fixed for' + subGridId);
            /* END fix broken subgrid statusbar */
        }
    });
  • Suggested answer
    TS2a Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Thanks for your reply Alex. I confirm that this has fixed this issue. I hope however that Microsoft will fix this within CRM so that there is no need to add this additional code to every individual form that has a subgrid.

  • Alex Sorokoletov Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    You are right, unfortunately I had no time to wait for the fix :)

  • Lisa Duong Profile Picture
    10 on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Yes, thanks, it worked for us too...but I also am hoping the Microsoft fixes this so that it works as it used to...without a workaround :)

  • Community Member Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    This gives me an error when bulk editing accounts. I applied your script to the account entity:

    Microsoft Dynamics CRM Error Report Contents

     

    <CrmScriptErrorReport>

      <ReportVersion>1.0</ReportVersion>

      <ScriptErrorDetails>

       <Message>Unable to get property 'prototype' of undefined or null reference</Message>

       <Line>3</Line>

       <URL>/.../WebResources/new_subgridpaging</URL>

       <PageURL>/_grid/cmds/dlg_bulkedit.aspx?iObjType=1&iTotal=43</PageURL>

       <Function>idControlLite.prototype.updateVisibility_backup_proto=Mscrm.GridControlLite.prototype.updateVisibility;Mscrm.GridControlLite.prototype.updateVisibility=function(totalRecordCount,recordsPerPage,statusBar)</Function>

       <CallStack>

        <Function>idControlLite.prototype.updateVisibility_backup_proto=Mscrm.GridControlLite.prototype.updateVisibility;Mscrm.GridControlLite.prototype.updateVisibility=function(totalRecordCount,recordsPerPage,statusBar)</Function>

       </CallStack>

      </ScriptErrorDetails>

      <ClientInformation>

       <BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)</BrowserUserAgent>

       <BrowserLanguage>en-US</BrowserLanguage>

       <SystemLanguage>en-US</SystemLanguage>

       <UserLanguage>en-US</UserLanguage>

       <ScreenResolution>1600x900</ScreenResolution>

       <ClientName>Web</ClientName>

       <ClientTime>2014-09-30T12:44:21</ClientTime>

      </ClientInformation>

      <ServerInformation>

        <OrgLanguage>1033</OrgLanguage>

        <OrgCulture>1033</OrgCulture>

        <UserLanguage>1033</UserLanguage>

        <UserCulture>1033</UserCulture>

        <OrgID>{...}</OrgID>

        <UserID>{...}</UserID>

        <CRMVersion>6.1.1.123</CRMVersion>

      </ServerInformation>

    </CrmScriptErrorReport>

  • Alex Sorokoletov Profile Picture
    on at
    RE: CRM 2013 Subgrid Page Navigation Disappears

    Thank you for the report, I will check the code. However, please keep in mind that this is my own fix and not official fix from Microsoft. 

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