We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid styles

Thread ID:





150181 Dec 24,2019 09:03 AM UTC Dec 24,2019 10:56 AM UTC Angular - EJ 2 1
Tags: Grid
serdar çelebi
Asked On December 24, 2019 09:03 AM UTC

Hi Team,

I want to use small font size and decrase padding of grids toolbar and grids filter bar but i couldnt. I reduced height but not like i wanted. also how can i do grids headerText bold.

Thanks in advance

Thavasianand Sankaranarayanan [Syncfusion]
Replied On December 24, 2019 10:56 AM UTC

Hi Serdar, 

Greetings from Syncfusion support. 

Query: I want to use small font size and decrease padding of grids toolbar and grids filter bar but I couldn’t. I reduced height but not like I wanted. also how can I do grids headerText bold. 
We can achieve your requirement by using the below CSS style. We can set row height for Grid content using the rowHeight property of Grid. 


<ejs-grid [dataSource]='data' height='350' [allowFiltering]='true' [rowHeight]=25 [editSettings]='editSettings' [toolbar]='toolbar'> 
          .  .  .  . 

    //Set font size for Grid content 
    .e-grid .e-rowcell { 
        font-size: 10px; 
    // Set font size and bold for headertext in Grid 
    .e-grid .e-headercelldiv { 
        font-size: 13px; 
        font-weight: bold; 
    //Setting padding for Grid toolbar 
    .e-grid .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn { 
        padding: 0 0.5px; 
    .e-grid .e-toolbar .e-toolbar-items .e-toolbar-item:not(.e-separator) { 
        padding: 0.5px; 
    //Setting padding for Grid filterbar 
    .e-grid .e-filterbarcell, .e-grid .e-filterbarcelldisabled { 
        padding: 0 5px; 

We have prepared a simple sample in the following link. 

Refer the help documentation. 

Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon