I use like this: <e-grid-column field="PickUpDate" headerText="Project" customFormat="@(new { type="date", format="dd.MM.yyyy" })" textAlign="Right"></e-grid-column>
I need to hide "01.01.1901"
public class DateTimeValue
{
public DateTime? value { get; set; }
} |
It did not help me I almost have
"01.01.1901" in default ((((
I need to have empty " " )), use default...
<e-grid-column field="OrderDate" headerText="Project" customAttributes=@(new { @class="e-custom" }) customFormat="@(new { type="date", format="dd.MM.yyyy" })" textAlign="Right"></e-grid-column>
function rowDataBound(args) {
if (args.data.OrderDate.toLocaleDateString() === '1/1/1901') {
args.data.OrderDate = null; // define null or empty
args.row.getElementsByClassName('e-custom')[0].innerText = ''; // likewise we can define the innerText value as empty for specific cells
}
} |