Hi,
We have a radGrid with one pre-defined checkbox column. To this grid we bind a dynamically generated datatable. Based on a certain logic we have to hide some of the columns in the grid. We are using the following code piece
Sub Page-Prerender
grdlist.datasource=databale
grdlist.databind
We have a radGrid with one pre-defined checkbox column. To this grid we bind a dynamically generated datatable. Based on a certain logic we have to hide some of the columns in the grid. We are using the following code piece
Sub Page-Prerender
grdlist.datasource=databale
grdlist.databind
For Each col As Telerik.Web.UI.GridColumn In grdList.Columns
If col.UniqueName = "Field to Check" Then
col.Display =
False
Exit For
End If
Next
end sub
However the Grid seems to have only one column even in the page prerender hence we dont get to access the column at all. Which event must be used to hide a column?
Issue #2
BTW i also see the checkbox column always grayed even though i have given "REadonly" as "false". What we need is to give a user functionality to click the check boxes and click delete / assign.
1. How to enable the checkboxes in the grid
2. How to get the checked items.