C# 列日期为空
我有一个以XML格式返回数据的表单。我使用jqxGrid。 在“批准日期”列中,我可以返回空,但jqxgrid返回1900年1月1日。 如果该列为空,如何使该列返回空ou函数以隐藏该列C# 列日期为空,c#,javascript,jquery,asp.net,.net,C#,Javascript,Jquery,Asp.net,.net,我有一个以XML格式返回数据的表单。我使用jqxGrid。 在“批准日期”列中,我可以返回空,但jqxgrid返回1900年1月1日。 如果该列为空,如何使该列返回空ou函数以隐藏该列 $(document).ready(function () { source = { datatype: "xml", datafields: [ { name: 'User', type: 'stri
$(document).ready(function () {
source =
{
datatype: "xml",
datafields: [
{ name: 'User', type: 'string' },
{ name: 'ApprovalDate', type: 'date' },
{ name: 'UserRequestor', type: 'string' }
],
async: false,
record: 'Table',
url: 'Tickets.aspx/GetTickets',
};
var dataAdapter = new $.jqx.dataAdapter(source, {
contentType: 'application/json; charset=utf-8'}
);
$("#jqxgrid").jqxGrid(
{
width: '100%',
source: dataAdapter,
theme: 'classic',
columns: [
{ text: 'User', datafield: 'User', align: 'center', width: 200 },
{ text: 'Approval Date', datafield: 'ApprovalDate', align: 'center', cellsformat: 'dd/MM/yyyy', width: 120 },
{ text: 'User Requestor', datafield: 'UserRequestor', align: 'center', width: 200 },
]
});
});
尝试添加:value=”“@AhmedAli不工作!如果我在datafild中添加值:“”,则返回空值。如果在$(“#jqxgrid”)中添加值:“”。jqxgrid返回01/01/1900。