I have an entity named "AchFile", Ach Files have "batches associated with them. When the grid is populated from the action the count of batches displays. I have not been able to figure out how to get the count to display after the Ajax call which occurs when the grid is sorted. Instead of getting the count value for example "2" I get "[object Object],[object Object]" displayed in the column instead of 2.
columns.Template(o => o.Batches.Count()).ClientTemplate("<span>"+"<#= Batches #>"+"</span>").Title("Batch Count");
You can directly call use <#= Batches.Count #>
Add javascript to the top to the page to return the count of files.
Then change the ClientTemplate code to call the javascript.