Text truncation in PdfGrid

Hi there,

I am working on an app that creates a PDF with a Grid where all the cells are fixed sizes. Sometimes the amount of text will be larger than the space available and I would like to truncate the text ending with "..." or something similar. I would have expected to find an option in PdfStringFormat where there are similar properties but it seems it is not a feature unless I am missing it? Is there a known way to create this effect or could you add it to the list of ideas?

Many thanks!!

Will

1 Reply 1 reply marked as answer

SL Sowmiya Loganathan Syncfusion Team September 29, 2020 02:30 PM UTC

Hi William,   
  
Thank you for contacting Syncfusion support.   
  
We have analyzed your requirement “Truncate the text ending with (…) in table”. But we do not have support for this truncation of text with expand using PdfStringFormat. However, if the text will be larger than the row height, we can able to set the row height in PdfGrid. Please refer the below code snippet for more details,   
  
//Create a new PdfGrid  
PdfGrid pdfGrid = new PdfGrid();  
  
//Add rows  
PdfGridRow pdfGridRow = pdfGrid.Rows.Add();  
pdfGridRow.Height = 100;  
  
  
Please try the above solution in your end and let us know if you have any concerns on this.   
  
Regards,  
Sowmiya Loganathan  
 


Marked as answer
Loader.
Up arrow icon