Hi Yavor,
Thanks for the answer
I added some lines to answer my need : sort dates in dd/mm/yyyy format but in a textBox field and not a dateTimeInput field
$(document).ready(function () {
// prepare the data
var data = generatedata(20);
var sortcolumn;
var customsortfunc = function (column, direction) {
var sortdata = new Array();
//Store the current sort column
sortcolumn = column;
...
var compare = function (value1, value2) {
if (sortcolumn === 'textDate') {
//Reverse dd/mm/yyyy to yyyymmdd
tmpvalue1 = String(value1).substr(-4)+String(value1).substr(3,2)+String(value1).substr(0,2);
tmpvalue2 = String(value2).substr(-4)+String(value2).substr(3,2)+String(value2).substr(0,2);
value1 = tmpvalue1;
value2 = tmpvalue2;
}
...
This meets the need, but it is not very elegant. A callback function associated to the sorting on the column would be more consistent with the other behaviors on this column (renderer, filter,…).