jQWidgets Forums

jQuery UI Widgets Forums Grid Export particular columns in jqxGrid

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Export particular columns in jqxGrid #50605

    chengamkathiravan
    Participant

    Hi,

    We have 5 columns in jqxGrid. In these columns one of column is image column. While exporting we want to exclude(leave) this image column.

    Please provide sample code to do it at earliest.

    Best Regards
    Bala.

    Export particular columns in jqxGrid #50610

    Peter Stoev
    Keymaster

    Hi Bala,

    Each column has “exportable” property which you can set to either true or false. Set it to false to disable the exporting.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Export particular columns in jqxGrid #50611

    chengamkathiravan
    Participant

    Hi Peter,

    Thanks. Now we can exclude particular column while exporting after setting “exportable” property to false.

    Meanwhile we are facing one more problem. We have one date column. It has swedish format date value as “2014-02-04”

    grid has below declaration for that field.
    { text: ‘Delivered’, datafield: ‘Delivered’, width: 150, renderer: columnrenderer },

    In columnrenderer event we are aligning header text only.

    While exporting we are not able to see the the Delivered values. Only Header only coming in xls or pdf.

    Please help in this regard

    Best Regards
    Bala.

    Export particular columns in jqxGrid #50612

    Peter Stoev
    Keymaster

    Hi Bala,

    That is because the Grid exports the “Text” not the custom HTML which you render within the columnrenderer. The same is valid if you implemented cellsrenderer. jqxGrid will always export only the Cell Values and the Column Header Text. It would not take into account custom HTML renderers.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.