i need help in infragistics jquery grid which i am new to it.. if my scenario where i want to request page by page. for example if we have 1000 records in first request i send only 1st 100 records as json sent to datasource of the grid. but the problem it is showing only 1 page in the pagger dropdown but which is not correct which actually should contain 10 pages bcz page size -100 / total record -1000. i tried by below code to reset the total records count to 1000 by using below code: but didnt worked. $(“#grid1”).igGridPaging("option", "recordCountKey ",1000); So please give some samples to reset pagger dropdown value according to the total records.please help me it is very urgent. In advance Thank you..
Hello Rocky,
I guess that you're binding igGrid to some custom Web Service and not using our Grid MVC Wrapper.
In this case the data which your service returns to the grid should have an extra property which holds the real row count and recordCountKey should contain this property name.
You can see what I'm talking about in the screenshot.
Hope this helps,Martin PavlovInfragistics, Inc.
I am bind the igGrid with ajax call which return a json on button click. i used the above solution and my json returns from controller mentioned below :
myrowData [Oject{id="dfdjk",name="duyety"}]
TotalRecordsCount 1000
function getFeature() { var feature= [ { name: "Paging", type: "local", pageSize: pageSize, pageCountLimit: 0, recordCountKey: "TotalRecordsCount"// as u mentioned in your suggestion }]}
function grid(grid1, columns, data, getFeature) {
igloader("igGrid.*"); $.ig.loader(function () { $(grid1).igGrid({ autoGenerateColumns: false, columns: columns, dataSource: data, features: getFeature });
}); }
Actually i target is to get 100 records at time from the server by using ajax call. When i am doing the same then iggrid shows the number of count as page size but that is not required. If i have TotalRecordsCount - 1000 records then i will divide with my show records dropdown value and same value i want populate to pagger dropdown.. Any way to add new item to pagger dropdown which below of the grid. If any please share some example and sample code for the same. Its very urgent ..
I want in this way so that on page change event i can get call the same ajax call to get the next set of 100 records for the server.