I have a grid:
<TelerikGrid @ref="@gridHDR"
Data="@GDgridHDR"
AutoGenerateColumns="true"
Pageable="true"
Sortable="true"
Class="custom-row-colors"
FilterMode="@GridFilterMode.FilterRow">
<GridToolBarTemplate>
<GridCommandButton Command="ExcelExport" Icon="@FontIcon.FileExcel">Export to Excel</GridCommandButton>
<label class="k-checkbox-label"><TelerikCheckBox @bind-Value="@gridHDR_ExportAllPages" /> Export All Pages</label>
</GridToolBarTemplate>
<GridExport>
<GridExcelExport FileName="@msExportFileName" AllPages="@gridHDR_ExportAllPages" OnBeforeExport="@gridHDR_OnBeforeExcelExport" />
</GridExport>
</TelerikGrid>
It autogenerates the columns .
I have a need to hide one or more of the columns if the user checks off a checkbox on the UI.
So i would like to do something like:
Grid.Column[0].visible = False;
Is there a way to do this without me having to put in all the Column tags?
If I do have to add in the column tags can I only add in the ones that may be turned off/On or do I have to add in all the columns coming back?
Hopefully that makes some sense.
Thanks
Deasun
This might help with what I am trying to do: