Remove grid border in TreeList

1 Answer 402 Views
TreeList
Hans
Top achievements
Rank 2
Iron
Iron
Hans asked on 03 Nov 2022, 10:16 AM
Hi,
I would like to remove the border that you can see in each row of a TreeList. I can only change the background color with CSS but not the border. About 1 pixel high, colored gray, below and above each row.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Nov 2022, 07:57 AM

Hello Hans,

The general approach is to use the browser's DOM inspector to see how the existing styles are applied. This will hint you how to override them with higher specificity.

Borders can be removed by setting the border-color to transparent or setting the border-width to 0.

    div.my-custom-treelist-class td {
        border-bottom-color: transparent;
    }

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TreeList
Asked by
Hans
Top achievements
Rank 2
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or