This question is locked. New answers and comments are not allowed.
Hi,
I bound a data table to grid which columns are dynamically created. I want to hide "Id" column in grid. Sample code is below;
I bound a data table to grid which columns are dynamically created. I want to hide "Id" column in grid. Sample code is below;
<%: Html.Telerik().Grid(Model.ResultList)
.Name("GridBounceList")
.CellAction(cells =>
{
if(cells.Column.Title=="Id")
cells.Column.Hidden = true;
})
.DataBinding(db => db.Ajax().Select("_BindBounceList", "Report"))
.Pageable(paging => paging.PageSize(20).Style(GridPagerStyles.PageInput | GridPagerStyles.Numeric).Position(GridPagerPosition.Bottom))
.Sortable(sorting => sorting.SortMode(GridSortMode.MultipleColumn))
.Filterable()
%>
Any help would be greatly appreciated.
Thank you.