likemike Posted March 31, 2021 Share Posted March 31, 2021 Hello! All efforts to change the font size or color of the title of a UnimDbgrid-column are ignored. Same thing with the background color of the title. Please help me! Thanks in advance Mike Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 4 minutes ago, likemike said: All efforts to change the font size or color of the title of a UnimDbgrid-column are ignored. Same thing with the background color of the title. Hello, Can you try to use this approach?: Link to comment Share on other sites More sharing options...
likemike Posted March 31, 2021 Author Share Posted March 31, 2021 OK -Thanks! This has an effect. With try-and-error I've found out, that I can change the font-size of the title and optimize display with: function painted(sender, eOpts) { var grid = sender; grid.getColumns().forEach(function(column) { column.headerElement.setStyle('background-color', '#5FA2DD'); column.headerElement.setStyle('color', 'white'); column.headerElement.setStyle('font-size', '24px'); column.headerElement.setStyle('height', '48px'); column.headerElement.setStyle('line-height', 'normal'); column.headerElement.setStyle('padding-top', 0); }); } But my question is the same as this one from Denis: On 9/25/2020 at 8:58 AM, Denis Molchanov said: Пытаюсь в интернете найти откуда у column есть свойство headerElement ? И нигде нет ))) К примеру, смотрю тут https://docs.sencha.com/extjs/6.2.0/modern/Ext.grid.column.Column.html у column нет таких свойств и методов. Подскажите где искать. How can I find a source, where I can find the supported properties?? I don't want to disturb you for every little display issue and I'm sure I'm not alone with this wish. Best regards Mike Link to comment Share on other sites More sharing options...
Recommended Posts