I want to hide/show by code some controls inside a radgrid's editform.
I have a radgrid. The user clicks on a row and the custom editform is showed because we are in edit mode. Inside this form I have some controls bounded with datasource data. How can I hide some controls by code?
I tried the ItemCommand event but it seems I cannot access the controls in edit :(
protected void RadGridParametriConfigurazione_ItemCommand(object source, GridCommandEventArgs e) { switch (e.CommandName) { case "Edit": GridEditableItem editedItem = (GridEditableItem)(e.Item); GridEditManager editMan = editedItem.EditManager; GridTemplateColumnEditor templateColumnValoreEditor = (GridTemplateColumnEditor)(editMan.GetColumnEditor("TemplateColumnValore")); GridTemplateColumnEditor templateColumnDescrizioneEditor = (GridTemplateColumnEditor)(editMan.GetColumnEditor("TemplateColumnDescrizione")); GridCheckBoxColumnEditor checkBoxColumnEditor = (GridCheckBoxColumnEditor)(editMan.GetColumnEditor("Abilitato")); checkBoxColumnEditor.ContainerControl.Controls[0].Visible = false; break; } } }How can I do this?