CSV Export using semicolon instead of comma

Hi, ¿how can i use a semicolon instead of comma for CSV export? Im using Grid widget with MVC, client is downloading file on clientside clicking on Export icon. Thank you

Regards,


Image_2906_1704739355277


3 Replies 1 reply marked as answer

JC Joseph Christ Nithin Issack Syncfusion Team January 11, 2024 07:20 PM UTC

Hi Rodrigo,


   Greetings from Syncfusion support.


   Based on your query, you want to use the ‘;’ delimeter instead of the ‘,’ delimeter. Your requirement can be achieved using the export properties.


  Please refer the below code example:


 

<script type="text/javascript">

 

    function toolbarClick(args) {

        switch (args.item.text) {

            case 'PDF Export':

                gridInstance.pdfExport();

                break;

            case 'Excel Export':

                gridInstance.excelExport();

                break;

            case 'CSV Export':

                var exportProperties = { separator: ';' };

                gridInstance.csvExport(exportProperties);

                break;

        }

    }

</script>

 


Regards,

Joseph I.


Marked as answer

RO Rodrigo replied to Joseph Christ Nithin Issack January 12, 2024 04:14 AM UTC

Thank you, works great.



JC Joseph Christ Nithin Issack Syncfusion Team January 15, 2024 08:12 PM UTC

Hi Rodrigo,


  We are glad the provided solution resolved your query.


Loader.
Up arrow icon