I have tried posting my code for the markup and code behind sections but unfortunately its crashing your site cause its a bit lengthy one. To explain my issue in further detail, I would like to inform that i have a grid with 2 nested detail tables in there. The first grid has some columns and second grid has some templated columns that are being purely used for data entry by the user. I am using data layer methods to populate all levels of the grid and these methods in turn are using SQL stored procedures. Now the issue i have is quite simple, the client wants us to enable the HeaderContextMenu to be able to show/hide columns on the fly with the RadGrid. To make things work, i have added a column to the master table at the end without a width as suggested by one of your support colleagues because the second and the third level of the grid have more number of columns than the master table (first grid) and also i have some templated columns that have textboxes to get user entries.
All i want to be able to do is to control what columns can i display on the list of fields with checkboxes under Columns under Header Context Menu for the grid. Is there a way to have say out of 12 columns only 7 on the header context menu under columns.. I tried using the Override OnInit approach, but somehow, it doesn't load the datasource for detailtables at all :-
override void OnInit(EventArgs e)
private void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
as CheckBox).Enabled = false;