jQWidgets Forums

jQuery UI Widgets Forums Grid Export Grid

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Export Grid Posts
  • Export Grid #59336

    Hello,

    I have a table format and some text fields that have numeric values ​​as an example: 04, 05, 20 and when they are presented on the screen appear normally, but when I export they get strange type dates: 12/31/1969, why this happens?

    Export Grid #59353

    Dimitar
    Participant

    Hello lsmarco2008@gmail.com,

    Please make sure your datafields have their type set in the source definition, e.g.:

    var source =
    {
        datatype: "json",
        datafields: [
            { name: 'empName', type: 'string' },
            { name: 'age', type: 'number' },
            { name: 'id', type: 'number' },
            { name: 'name', type: 'string' },
            { name: 'author', type: 'string' }
        ],
        localdata: data
    };

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.