I am trying to implement virtual scrolling in a jqxGrid. As I understand it, when I initialize the grid, I need to set its rendergridrows to a function that it can call to get data for specific rows. I have done this with local data to prove to myself that it works, but I am having trouble doing it with remote data.
Inside the rendergridrows function, I would like to make an async ajax call to get the data. When I make the async ajax call, I give it a function to call when it finishes and it immediately returns. At this point I have nothing to return in rendergridrows. Later, when the ajax call finishes, I have the data that the gird requested, but rendergridrows has already finished.
Is there a way to make this work?
Thank you.