Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Next Page arrow not working

Posted on by 428

Hi, 

I need help in resolving this issue, I have a subgrid where i am using javascript( copied from internet, as i don't know much) to refresh the data on the parent record and it works really well, however, i believe this is messing up the next page functionality as when i have more records that goes on 2 or 3rd page the next page arrow button doesn't do anything and stays on 1st page only.

Every other sub grid is working properly.  

pastedimage1643709492016v1.png

below is the script:

function Form_onLoad() {
setTimeout("SubGridRefresh();", 2500);
}

function SubGridRefresh() {
var grid = Xrm.Page.getControl("Characteristics");
if (grid) {
grid.addOnLoad(ReloadForm);
}
}

function ReloadForm() {
Xrm.Page.data.refresh(true);
}

Thanks,

PS

  • PS10 Profile Picture
    PS10 428 on at
    RE: Next Page arrow not working

    Hi Nya,

    Thanks for your reply, if so how can i fix the code to make it work.

    Thanks,

    PS

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Next Page arrow not working

    Hi PS,

    The code forces the subgrid to be refreshed, so it will keep showing the first page.

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