Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Ig -Grid Paging
posted

Hi,

I'm having an issue while Doing Custom Paging ,

My code as follows ,

{
name: "Paging",
type: "remote",
pageSize: "" + pageCount + "",
pageCountLimit: 100,
visiblePageCount: 5,
pageSizeList: [10, 20, 50, 100, "All"],
pageSizeChanging: function (evt, ui) {
if (ui.currentPageSize == ui.newPageSize) {
isChoseAll = true;
}
},
pageSizeChanged: function (evt, ui) {
if (isChoseAll) {
var totalCount = $('#gridSetting').data('igGrid').dataSource._recCount;
$("#" + gridId).igGrid("widget").igGridPaging("option", "pageSize", totalCount);
isChoseAll = false;
}
},
recordCountKey: "TotalRecordsCount"
},


I have Included the  'ALL' in PagesizeList while Binding , My issue is while selecting [All] it displayes all the data from datasource but in in frontEnd the word All is not dispalyed for example if a datasource have 13 records it shows as 13 instead of All 

For reference i have attached the image with this query.