can we align numeric data at left side in Export to Copy Functionality ?

can we align numeric data at left side in Export to Copy Functionality ?

Pratiksha PawarPratiksha Pawar Posts: 8Questions: 3Answers: 0

I need to align Numeric Data and Dates in Copy functionality at left side.If anyone Know the answer then please let me know, Thanks in Advance.
Code is here----

If I Copy data through copy button and paste it in Excel file then its showing like this----

In CSV File I Done the Alignment using Customize function,output is like this---
I want same alignment for copy button

Thanks

This question has an accepted answers - jump to answer

Answers

  • Pratiksha PawarPratiksha Pawar Posts: 8Questions: 3Answers: 0

    This one is copy buttons output

  • allanallan Posts: 61,821Questions: 1Answers: 10,127 Site admin

    The formatting is done automatically by Excel for "number" types. If you want to change it to make it a plain text cell, use the customize callback to change the cell type in the created XML.

    Have a look at this example for how to modify the cell types in the XML.

    Allan

  • Pratiksha PawarPratiksha Pawar Posts: 8Questions: 3Answers: 0

    Thanking You for your Response,But its not working for Copy Functionality,For Export to excel its Done & working fine.Can you please Explain how to align Data in Export to Copy functionality.,Thanks again

  • allanallan Posts: 61,821Questions: 1Answers: 10,127 Site admin
    Answer ✓

    You can't. The copy to clipboard is plain text. No formatting information is copied. So when you paste into Excel, whatever formatting is applied is coming from Excel.

    Allan

  • Pratiksha PawarPratiksha Pawar Posts: 8Questions: 3Answers: 0

    ok,Thank You so much for Your Responce.

Sign In or Register to comment.