1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    6
    Vote Rating
    0
    bakachu is on a distinguished road

      0  

    Post Hiding Column Headers on a table

    Hiding Column Headers on a table


    Hi

    Firstly GXT is great! really fun to use.

    I was just wondering if its possible to hide the column headers on a table, reason being I'm using a table for a nice layout of various information, where the value of column 1 is a property-name like 'Name' or 'Telephone Number' and column 2 is the value like 'Bakachu' or '123 456'

    I understand it may be possible to do this layout with Layouts, but I quite like the text formatting and the simplicity of the table approach, the only issue is that I don't really need or want the Column Headers of the table..

    If any one has any advice or of simple other ways to do something similar I would be very appreciative.

    Thanks!

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    don't know if this would work, but try this...

    table.getTableHeader().setVisible(false);

    ..you may have to do this after render, so wrap in a deferredcommand

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    6
    Vote Rating
    0
    bakachu is on a distinguished road

      0  

    Default


    Thank you, that worked a treat. Didn't need the deffered command either, so its everything I was after

    Cheers

Thread Participants: 1