jQuery UI Widgets Forums TreeGrid Error when trying to export

This topic contains 2 replies, has 2 voices, and was last updated by  achirinos 9 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Error when trying to export #73475

    achirinos
    Participant

    Hi I’m getting this error: Uncaught TypeError: Cannot read property ‘length’ of undefined when trying to export in any format different to json or xml!

    Anyone having the same problem?

    Error when trying to export #73490

    Peter Stoev
    Keymaster

    Hi achirinos,

    Share jsfiddle.net or https://www.jseditor.io/ sample, please. We cannot reproduce this.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Error when trying to export #73536

    achirinos
    Participant

    Hi,

    let me try using jsfiddle!

    but check this out! when I set collapsedRecords to false on export settings it works ok! the error shows up when collapseRecords in export settings is set to true!!

    For more information I add the rows to the TreeGrid dynamically using the jqxTreeGrid(‘addRow’..) method!

    my datasource is set this way (added rows datafields aren’t the same as datafields in source):

    var source =
    {
    dataType: “json”,
    dataFields: [
    { name: ‘Id’, type: ‘string’ },
    { name: ‘Children’, type: ‘array’ }
    ],
    hierarchy:
    {
    root: ‘Children’
    },
    id: ‘Id’,
    localData: null
    };

    var dataAdapter = new $.jqx.dataAdapter(source);

    is this ok?

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

You must be logged in to reply to this topic.