This is a migrated thread and some comments may be shown as answers.

Hide Column Header

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 21 Aug 2014, 05:32 PM
Hi,

i would like to hide the column of a header like this one.

columns: [{
    field: "field_1",
      ...
    headerAttributes: {
        style: "display: none"
    }
}]

But i do not know how to do this with the PHP UI. The next one does not work.

->headerAttributes("style: \"display: none\"")


Thanks & Regards
Chris

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 22 Aug 2014, 11:37 AM
Hello Chris,


In the current case you should use the equals sign after style, instead of colon, because the attributes string is directly appended to the markup.
E.g.
->headerAttributes("style= \"display: none\"");

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Christopher
Top achievements
Rank 1
answered on 27 Aug 2014, 12:03 PM
Hi Dimiter,

now it works fine. Thanks! :-)

Chris
Tags
Grid
Asked by
Christopher
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or