$("#id").datagrid({
remoteSort : false,
idField : 'uid',
columns : [ [ {
field : '*********',
title : '*********',
sortable:true,
width : 150,
sorter : function(a, b) {
a = a.split('/');
b = b.split('/');
if (eval(a[2]) == eval(b[2])) {
if (eval(a[0]) == eval(b[0])) {
return (eval(a[1]) > eval(b[1]) ? 1 : -1);
} else {
return (eval(a[0]) > eval(b[0]) ? 1 : -1);
}
} else {
return (eval(a[2]) > eval(b[2]) ? 1 : -1);
}
}
}, {
field : '**********',
title : '*********',
sortable:true,
width : 150,
sorter:function(a,b){
a = a.split('/');
b = b.split('/');
if (eval(a[2]) == eval(b[2])) {
if (eval(a[0]) == eval(b[0])) {
return (eval(a[1]) > eval(b[1]) ? 1 : -1);
} else {
return (eval(a[0]) > eval(b[0]) ? 1 : -1);
}
} else {
return (eval(a[2]) > eval(b[2]) ? 1 : -1);
}
}
}, {
field : 'uid',
title : 'Defalut',
width : 50,
hidden : true
} ] ],
});
remoteSort : false,
idField : 'uid',
columns : [ [ {
field : '*********',
title : '*********',
sortable:true,
width : 150,
sorter : function(a, b) {
a = a.split('/');
b = b.split('/');
if (eval(a[2]) == eval(b[2])) {
if (eval(a[0]) == eval(b[0])) {
return (eval(a[1]) > eval(b[1]) ? 1 : -1);
} else {
return (eval(a[0]) > eval(b[0]) ? 1 : -1);
}
} else {
return (eval(a[2]) > eval(b[2]) ? 1 : -1);
}
}
}, {
field : '**********',
title : '*********',
sortable:true,
width : 150,
sorter:function(a,b){
a = a.split('/');
b = b.split('/');
if (eval(a[2]) == eval(b[2])) {
if (eval(a[0]) == eval(b[0])) {
return (eval(a[1]) > eval(b[1]) ? 1 : -1);
} else {
return (eval(a[0]) > eval(b[0]) ? 1 : -1);
}
} else {
return (eval(a[2]) > eval(b[2]) ? 1 : -1);
}
}
}, {
field : 'uid',
title : 'Defalut',
width : 50,
hidden : true
} ] ],
});