I am currently debugging some issues we are having with trying to enable the 'All' option for page sizes. Based on what I've found out, it appears as if the <select> that holds the page size options is setting the value for All to 'All' instead of the total number of records. Is this how this is supposed to work?
Is there a list of common issue with trying to get this to work I can try to look through?
I can add
pageable: {
pageSizes: [ 10,25,50,100,'All' ],
buttonCount: 5,
message: {
empty: 'No Data',
allPages:'All'
}
} ,
This adds an 'All' option, but if you select it nothing happens.
I can add the following to the end of my $(document).Ready()
var pageSizes = [{ text: \"10\", value: 10 }, { text: \"25\", value: 25 }, { text: \"50\", value: 50 }, { text: \"100\", value: 100 },{ text: \"All\", value:" + Data_Table.Rows.Count + " }];
$('.k-pager-sizes select[data-role=\"dropdownlist\"]').data('kendoDropDownList').setDataSource(new kendo.data.DataSource({ data: pageSizes }));
Which helps, but seems like a hack.
Any advice would be greatly appreciated.