jQWidgets Forums

jQuery UI Widgets Forums Grid Export to excel missing characters "AG"

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Export to excel missing characters "AG" #86646

    tukang
    Participant

    Hi..
    i’m export jqxgrid to excel and find out something strange, if my cell contain string that begin with “AG” characters at the beginning than the result of export file will missing these two characters, for example if the cell value in jqxgrid is “AGUS” than the export file will missing “AG” and only remain “US” in the excel file.

    this only appear when i export to excel format, not with csv and pdf and only if the first two characters begin with “AG” if the cell value is “BAGUS” then it’s ok and export as expected.

    than i found out this condition appears because of this line of code in jqxdata.export.js
    “if(s!=null&&s.toString().substring(0,2)==”AG”){s=s.toString().substring(2);q=”String”}else{if(t.type==”date”){s=this.formatData(s,t.type,t.formatString,t.localization);if(s===null||s===””){s=””;q=”String”}}”

    Please help

    Export to excel missing characters "AG" #86650

    Christopher
    Participant

    Hi tukang,

    You’re probably using an older version of JQWidgets library. Please update to the latest JQWidgets(4.1.2) version. You can download it from: http://www.jqwidgets.com/download/

    Best Regards,
    Christopher

    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.