I have a combobox with checkboxes to choose what columns in a grid to have visible and not, the grid and combobox is ajaxified.
on the combobox itemChecked event i find the appropiate column and set its visibility value based on the checkbox, all very simple enough,
protected
void
cmbGridColumnChooser_ItemChecked(
object
sender, RadComboBoxItemEventArgs e)
{
grCases.Columns.FindByUniqueName(e.Item.Value).Visible = e.Item.Checked;
var test = grCases.Columns.FindByUniqueName(e.Item.Value).Visible;
}
However, setting the column to visible=false works great But when setting the column visible to visible=true again does not, even though the checkbox state shows true, and after checking the columns visible state straight afterwords (its true) the column still wont appear.
Any ideas anyone?