Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 列日期为空_C#_Javascript_Jquery_Asp.net_.net - Fatal编程技术网

C# 列日期为空

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

我有一个以XML格式返回数据的表单。我使用jqxGrid。 在“批准日期”列中,我可以返回空,但jqxgrid返回1900年1月1日。 如果该列为空,如何使该列返回空ou函数以隐藏该列

$(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。