I have using the datetimefield with editor. The sorting feature is not working for me.
Nothing is happen if i clicked on column name. I have trying with the below code.
new Grid({
appendTo : 'container',
minHeight : '20em',
columns : [
{
text : 'Date',
fields : [{ type : 'date', name : 'start', format : 'YOUR FORMAT'}],
flex : 1,
type : 'date',
format : 'DD.MM.YYYY HH:mm',
editor : {type : 'datetimefield'},
htmlEncode : false,
autoWidth : true,
renderer : ({ record = ''}) => {
if (record['start']) {
return '<i class="b-action-item b-action-item b-fa b-fa-pencil-alt" style="margin-right:9px;"></i>'+DateHelper.format(DateHelper.parse(record['start'],'DD.MM.YYYY HH:mm'),'DD.MM.YYYY HH:mm');
} else {
return '<i class="b-action-item b-action-item b-fa b-fa-pencil-alt" style="margin-right:9px;"></i>'+'N/A';
}
}
}
],
data : [{start : "21.02.2021 05:00"},{start : ""},]
});