Hello
Today I noticed a bug in the GRID control.
If it applies formatting so as not to wrap the line.
Then the standard export to PDF incorrectly shows these lines too long.
I have modified this example
https://dojo.telerik.com/@p.korczak@info-kor.pl/aNOvOYIP
by adding a line
toolbar: [{name: "excel"}, {name: "pdf"}],
and see those lines where the description is too long
Paweł
Hello Paweł,
Currently, the PDF export is not designed to show the browser ellipsis and I recommend using the previously shared approach.
However, I have converted this thread into a feature request. Generally, once such gets popular and its demand is high it will be added to the RoadMap for implementation.
Regards,
Nikolay
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Why should I only take 10 characters from this field?
Maybe 20 and I don't know that.
Correct the Grid control.
Paweł
Hello Paweł,
Although the visible in the browser ellipsis could not be exported to the PDF file, you can handle the "pdfExport" event of the Grid and manually trim the content of the cells, before the export.
For your convenience, the following is a simple example demonstrating this approach:
https://dojo.telerik.com/uLoDUZuL
pdfExport: function(e){
var cells = e.sender.element.find(".nowrap");
cells.each(function(i, el){
var cell = $(this);
var shortTitle = cell.text().slice(0, 10) + "...";
cell.html(shortTitle);
})
}
Let me know if you have any questions.
Regards,
Nikolay
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.