Grid column header height

Hello, I want to put a custom style on the grid column header

for example make it a button via bootstrap class, however the top and bottom parts of the button are getting cut off because the column header container height is too small. How do I increase the height

<HeaderTemplate>
<button @onclick="@Filter" class="btn btn-outline-primary" >
Column Header
</button>
</HeaderTemplate>

4 Replies 1 reply marked as answer

KG Keerthana Ganesan Syncfusion Team September 2, 2022 05:38 PM UTC

Hi Pavel,

Greetings from Syncfusion support.


We have analyzed your query and suggest you style the bootstrap class using CSS to set the border-radius to avoid cutting off the top and bottom parts of the button. Kindly refer to the attached code snippet for your reference.

<HeaderTemplate>

            <button @onclick="@Filter" class="btn btn-outline-primary" >

                       Column Header

            </button>

           </HeaderTemplate>

...
<
style>

    .btn .btn-outline-primary{

         border-radius : 2px;

    }

</style>


Kindly get back to us if you have any further queries.

Regards,

Keerthana.


PA Pavel September 2, 2022 11:00 PM UTC

hello that did not work
as the bottom half of the button is cut off

column.JPG



PA Pavel September 2, 2022 11:33 PM UTC

The solution I was looking for 

.e-grid .e-headercelldiv{
height: fit-content !important;
}

Marked as answer

MS Monisha Saravanan Syncfusion Team September 5, 2022 03:36 AM UTC

Hi Pavel,


Thanks for the update.


We are glad to hear that the reported issue has been resolved on your own. Kindly get back to us if you have further queries. As always we will be happy to help you.


Regards,

Monisha


Loader.
Up arrow icon