We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to apply the subscripts below when exporting to Excel

Hi.

I applied the subscripts below through the "<sub>" tag in datagrid.

I exported the data of the grid to Excel, but the following subscript were not applied.



Is there any way to apply the subscripts below when exporting to Excel?


Regards.


3 Replies

JC Joseph Christ Nithin Issack Syncfusion Team January 18, 2023 01:07 AM UTC

Hi TaeWook,


  Greetings from Syncfusion support.


Thank you for reaching out to us with your inquiry. We understand that you need assistance in resolving an issue you are facing with our grid. In order to provide an accurate and effective solution, we kindly ask that you provide us with the following information:


  • Complete grid rendering code.

  • A Simple sample that demonstrates the issue you are experiencing.

  • A video demo of the issue.

  • Syncfusion package version you are using


This will enable us to fully understand the problem and provide you with the best possible solution. We apologize for any inconvenience this may cause and we are here to assist you every step of the way. Please let us know if there is anything else we can do to help.


Regards,

Joseph I.




TK TaeWook Kang January 30, 2023 04:30 AM UTC

Hi,


Thank you for your kind answer.

I don't think a demo is a necessary issue.


Please reply if there is a style or function to apply subscript when exporting Excel.




As you can see in the image, I hope that subscripts will be applied when exporting the bounded data in the grid to Excel.

Will it be possible?



JC Joseph Christ Nithin Issack Syncfusion Team February 22, 2023 01:49 PM UTC

Taewook,


  Based on the provided information, we suspect that you have used used both HTML String and Text properties to set the cell value. But while using HTML string only the HTML styles will be maintained in the Excel document. When the Text property value is used in the cell value, the styles will be removed. So, we request you to share the below details so that we will be able to validate further.


  • Complete grid rendering code including the code you have used for adding the subscript to the grid.
  • A Simple sample that demonstrates the issue you are experiencing.
  • A video demo of the issue.
  • Syncfusion package version you are using.

Loader.
Up arrow icon