This is a migrated thread and some comments may be shown as answers.

Column title formatting

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
Veteran
mark asked on 21 Apr 2020, 07:40 PM

What kind of formatting is implemented for multi language applications? The fundamental problem we are having is that different languages have considerably different lengths of column names. What's available to avoid the hard widths for column titles? 

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 23 Apr 2020, 03:51 PM

Hello Mark,

There are no specific formatting options for the column titles. But if you face issues with titles being too long in specific languages, you ca use the following CSS rule:

.k-grid-header .k-header {
   overflow: visible;
   white-space: normal;
}

which will allow the title to be displayed in two or more lines, instead of showing the default ellipsis ("...") when the title text does not fit the column width.

Here's a dojo example that shows two Grids, the difference between which is in the titles in two of the columns: https://dojo.telerik.com/ireqAFec

The CSS rule above is applied and as you can see the titles are visible and no column width is set, which results in identical column width in both Grids.

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
mark
Top achievements
Rank 1
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or