Listview Column Header Text has spaces

1 Answer 93 Views
ListView
Karsten
Top achievements
Rank 1
Karsten asked on 29 Mar 2023, 05:46 PM

In my listview the column header text has some space on the left and right side. How can i get rid of this space ?

 

Thanks,

Kasi

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 31 Mar 2023, 04:42 AM

Hello, Kasi,

By default we use the GDI+ to measure the text, however, GDI+ is a known suspect for reporting wrong sizes of the text and this is probably the case here. It wouldn't be easy to determine without knowing the exact font. Could you please specify what is the font for the header cell elements in RadListView? Is the undesired spacing between the letters observed with another font? Just give several font sizes a try and choose this one which suits your requirements best.

You can easily force the element to use GDI instead of GDI+ by setting the UseCompatibleTextRendering property to false and this should improve the rendering of normal text. 

In case you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a complete sample code snippet that leads to the undesired behavior. Thus, we would be able to investigate the precise case locally and think about an appropriate solution. Thank you.

Regards,
Dess | Tech Support Engineer, Principal
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/.

Tags
ListView
Asked by
Karsten
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or