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

How to: Hide Header?

1 Answer 1190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ben
Top achievements
Rank 1
ben asked on 16 May 2020, 11:04 AM

Is there a way to hide the header?  I'm trying to use the Grid as a ListBox and it almost works using an empty span for the <HeaderTemplate>

<TelerikGrid SelectionMode="@GridSelectionMode.Multiple"
                                                 Data=@AvailableSerialNumbers
                                                 Pageable="false"
                                                 Sortable="false"                                                  
                                                 SelectedItemsChanged="@((IEnumerable<TSerialNumberDto> serialNumbers) => OnSelectSerialNumbers(serialNumbers))"
                                                  SelectedItems="@SelectedSerialNumbers"
                                                 >
                                        <GridColumns>                                            
                                            <GridColumn Field="Number">
                                                <HeaderTemplate>
                                                    <span class="k-display-flex k-align-items-center">
                                                        
                                                    </span>
                                                </HeaderTemplate>
                                            </GridColumn>                                            
                                        </GridColumns>
                                    </TelerikGrid>

However it leaves just a little bit of a bar at the very top that I can't get rid up...seems like there should be a way to hide that.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 May 2020, 07:32 AM

Hello Ben,

I made the following page that you can use the track the status of a feature for this, and I added a solution for the time being (a line of CSS): https://feedback.telerik.com/blazor/1467583-ability-to-hide-the-header-row

 

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
ben
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or