jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid export invalid property 'exportSettings'

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  Martin 6 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • JenkeNg
    Participant

    hello,jQWidgets team,

    When I used the export example you gave, I encountered some troubles that I didn’t understand. When I added the attribute “exportSettings”, the browser would display an error: jqxCore: invalid property ‘exportSettings’,

    $(“#baseDataGrid”).jqxGrid({
    width:’100%’,
    height:’100%’,
    source: dataAdapter,
    pageable: true,
    showToolbar: true,//显示工具栏
    altRows: true,
    editable: true,//可编辑
    filterable: true,//启用或禁用筛选
    sortable:true,//排序
    columnsresize: true,
    columnsautoresize: true,
    selectionmode: ‘singlerow’,
    editmode: ‘dblclick’,
    pagesize: 25,
    pagesizeoptions:[10,15,20,25,30],
    pagermode: “default”,
    virtualmode: true,
    rowdetails: true,
    exportSettings:{
    columnsHeader: true,
    hiddenColumns: false,
    serverURL: null,
    recordsInView: true,
    collapsedRecords: true,
    fileName: “Grid”,
    characterSet:”UTF-8″
    },

    I don’t know how to do it. Solved, waiting for the answer.


    Martin
    Participant

    Hello JenkeNg,

    jqxGrid does not have an exportSettings property.
    This is a property of jqxDataTable and jqxTreeGrid.
    I would suggest you to check the parameters of the exportdata method in the Grid’s API Page.

    Best Regards,
    Martin

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


    JenkeNg
    Participant

    I ignored this, I thought jqxGrid is more grid than jqxDatatable function, actually there will be no such properties, I am very surprised, but thank you for your answer


    JenkeNg
    Participant

    Thank you, I have another question. As far as I know, jqxDataTable’s exportSettings has a ‘recordsInView’ attribute that seems to make the view structure exportable: ‘determines whether to export all records or to take also the filtering and sorting into account.’, I don’t know if jqxGrid has Don’t have this feature? ?


    Martin
    Participant

    Hello JenkeNg,

    In jqxGrid the view structure is exported by default. The filtering and sorting are taken into account.
    If you need to export specific row you can also use the rows parameter of the exportData method.
    The fourth parameter is optional and determines the array of rows to be exported.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.