Select to view content in your preferred language

How to remove/hide dojo grid top row?

4179
3
Jump to solution
09-12-2013 12:41 PM
GyeyoungChoi
Deactivated User
Hi,

so I was using search function with dojo grid but I don't need top row (showing field name)

Does anyone know how?

Thanks,

<table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="grid" id="grid" data-dojo-props="rowsPerPage:'1', rowSelector:'10px'" style="width:100%">       <thead>         <tr><th field="OBJECTID" width="320"></th></tr>   <tr><th field="Name" width="320"></th></tr>   <tr><th field="Abbr" width="320">Camp</th></tr>       </thead>     </table
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
You can hide the header in css

.dojoxGrid-header { display:none; }

View solution in original post

0 Kudos
3 Replies
KenBuja
MVP Esteemed Contributor
You can hide the header in css

.dojoxGrid-header { display:none; }
0 Kudos
GyeyoungChoi
Deactivated User
You can hide the header in css

.dojoxGrid-header { display:none; }


Thanks! but it didn't work tho
0 Kudos
KenBuja
MVP Esteemed Contributor
I'm sorry about that. Although that's what the documentation said, I should have tested it first. Try this instead

 #grid .dojoxGridHeader { display:none; }