Hide Column Header

3 posts, 0 answers
  1. Christopher
    Christopher avatar
    9 posts
    Member since:
    Apr 2013

    Posted 21 Aug 2014 Link to this post

    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. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 22 Aug 2014 Link to this post

    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!
     
  3. UI for ASP.NET AJAX banner
  4. Christopher
    Christopher avatar
    9 posts
    Member since:
    Apr 2013

    Posted 27 Aug 2014 in reply to Dimiter Madjarov Link to this post

    Hi Dimiter,

    now it works fine. Thanks! :-)

    Chris
Back to Top