Hide column title of one column

1 Answer 43 Views
Grid
Benjamin
Top achievements
Rank 2
Iron
Iron
Veteran
Benjamin asked on 15 Feb 2023, 04:05 AM

my column defination for kendo grid

columns: [
                    { field: "centreName", title: "Centre Name", width: "180px" },
                    { field: "address", title: "Address", width: "188px", encoded: false },
                    { field: "programme", title: "Programme", width: "180px", encoded: false },
                    { field: "action", width: "180px", encoded: false }
                ],

I don't want to print the column title for action

current output is

Grid Header Columns

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 17 Feb 2023, 06:53 AM

Hi Benjamin,

You can hide the text using JavaScript:

      $('.k-header:nth-child(2)').text('')

Here is a small Dojo example

Regards,
Neli
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
Grid
Asked by
Benjamin
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Neli
Telerik team
Share this question
or