jQWidgets Forums

jQuery UI Widgets Forums DataTable change html labels with the export file

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • change html labels with the export file #76444

    manolo8217
    Participant

    i created a xml file using php and gave format with html labels using “<div>Latitud:21.8732<br>Longitud:-102.2774</div>” but when export it to excel the estructure copy as the xml file i want to remove the html labels or executed it and end it like “Latitud:21.8732
    Longitud:-102.2774”

    change html labels with the export file #76457

    Vladimir
    Participant

    Hello manolo8217,

    There is no callback function that you could use to modify the data before the export.

    What you can do is use the cellsRenderer functionality to add your data formatting without modifying the source. (instead of adding it with the php).

    In case you can not modify the xml, but still need the formatting to appear on the page, you can try to strip the formatting in the beforeLoadComplete callback of the dataAdapter, and possibly save it with some logic and reapply it with cellsRenderer. (The idea is to have clean source).

    Finally as a last resort, a really complicated solution could be to export the grid into a variable, modify that variable and either write a custom export function or maybe try to create a hidden DataTable with the modified variable, and export that. However this last one sounds to me quite a bit complicated for what you are trying to achieve.

    Best Regards,
    Vladimir

    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.