I am trying to load data from a response.json file, where totalRecords is specified as 1000. However the page count is not being calculated correctly:
jQuery.ajax({ url: 'http://localhost:8080/ecom/response.json?callback=jsonp', type : "GET", dataType : "jsonp", jsonpCallback: 'jsonp', jsonp: 'callback',success: function(data) {
$.ig.loader(function () { var _isDataBound = false; var logCounter = 0;
$("#grid1").igGrid({
autoGenerateColumns: false, dataSource: data, autoCommit: true, responseDataKey: "Records", columns: [ .... ]
{ name: 'Paging', type: "local", pageSizeList: [5, 10, 25, 50, 100], pageSize: 100, recordCountKey: "totalRecords" }
response.json contains the following code:
jsonp({ "Records" :[<DATA IS HERE WITH 50 RECORDS OF THE TOTAL RESULT SET OF 1000 FROM THE SERVER>], "totalRecords" : 1000})
What am I doing wrong?
Hi Lynn E,
Thank you for posting your inquiry on the Infragistics Forums.
This is an initial update to let you know that I have received your inquiry and will be looking into this for you. I will follow-up with you on Thursday with an update to my research on this inquiry.
Hi Lynne E,
Just want to update you that I am contininuing to look at this and will have an update for you on or before Monday.
Thanks!
Hi Bob,
I see that Angel replied to you on the original forum thread. As a note, please don't hop onto other threads to get your response on the forum thread that you are waiting on. The response will come. You can always choose to the 'Create Case' button on the bottom of the thread, if a support case has not already been created.
Hello Troy,
Any chance you would have the time to respond to my post : http://ko.infragistics.com/community/forums/t/81433.aspx
I'm having difficulty figuring out remote paging.
thanks.
Bob
Let me know if you need any additional assistance.
Hi Troy
Thank you for the reply. I believe the data was stored locally at that time but I can change the setting to 'remote' and see if that works.
Thanks again!
Reverting back to your description here, I see that you have paging set to 'local' but shouldn't this be set to remote? So to ask this another way, are all your data records available locally (browser) or are you making a call to get records when the page / pageSize changes?
Please let me know the above or if you find by changing to remote paging if the problem resolves itself.
Thanks,