Hi Neil,
The Count() function is used for getting the total amount of items. This total is used for the pager to decide how many pages there will be along with the information in the pager that displays the currently displayed items next to the total number of items in the data source.
That is why the recommended way for avoiding the call of the Count() method is to create a custom DataSourceResult instance and pass the data and total that should be retrieved explicitly by the developer.
Regards,
Tsvetomir
Progress Telerik
Progress is here for your business, like always.
Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.