Unable to cast object of type 'System.Int32' to type 'System.Nullable`1[System.Int64]'. SearchPanes
Unable to cast object of type 'System.Int32' to type 'System.Nullable`1[System.Int64]'. SearchPanes
![sarooptrivedi](https://secure.gravatar.com/avatar/cc7e56d1e7d3d7ea5ac4816c681bab5b/?default=https%3A%2F%2Fvanillicon.com%2Fcc7e56d1e7d3d7ea5ac4816c681bab5b_200.png&rating=g&size=120)
This is reference questions :https://datatables.net/forums/discussion/76041
This is looks like bug when I am enabling the ViewTotal=true then datatables.net **server-side code **throw the below error . I am using Datatables-Editor-Server library version 2.2.2 (.Net)
Unable to cast object of type 'System.Int32' to type 'System.Nullable`1[System.Int64]'.
buttons: [
{
extend: 'searchPanes',
config: {
cascadePanes: true,
delayInit: false,
viewTotal: true,
//i18n: {
// count: '{total}',
// countFiltered: '{shown} ({total})'
//},
layout: 'columns-3',
preSelect: [
{
column: 7,
rows: [(new Date().getFullYear()-1).toString()]
}
],
}
},
]
Answers
Server Side Code. It is working perfectly until I add the viewTotal=true in Jquery side
Many thanks for letting me know about this. I'll dig into it, but I fear it might be a couple of weeks before I can do so due to other commitments. I've got a note of it in my issue tracker and will post back when I have had a chance to look at it.
Allan