void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { if (e.EditorType == typeof(RadDropDownListEditor)) { e.EditorType = typeof(MyRadDropDownListEditor); } }
private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { if (radGridView1.CurrentColumn.Name == "InkColumn") { e.EditorType = typeof(GridInkEditor); } }
private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { if (e.EditorType == typeof(RadDropDownListEditor)) { e.Editor = new CustomDropDownEditor(); } }
private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { if (e.EditorType == typeof(RadMultiColumnComboBoxElement)) { e.EditorType = typeof(MyCustomEditor); } }
// use this event to replace the default editor for a specific cell private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { if (e.EditorType == typeof(GridSpinEditor) && !this.radGridView1.Columns[0].IsCurrent) { e.EditorType = typeof(TrackBarEditor); } else if (e.EditorType == typeof(RadTextBoxEditor)) { e.EditorType = typeof(BrowseEditor); } }
private void dgvData_EditorRequired(object sender, EditorRequiredEventArgs e) { GridViewEditManager manager = sender as GridViewEditManager; // Assigning DropDownListAddEditor to the right column if (manager.GridViewElement.CurrentColumn.Name == "Department") { DropDownListAddEditor editor = new DropDownListAddEditor(); editor.InputValueNotFound += new DropDownListAddEditor.InputValueNotFoundHandler(DropDownListAddEditor_InputValueNotFound); e.Editor = editor; } }
/// <summary> /// Gvs the parameter definition editor required. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Telerik.WinControls.UI.EditorRequiredEventArgs"/> instance containing the event data.</param> private void GvParameterDefinitionEditorRequired(object sender, EditorRequiredEventArgs e) { var param = this.gvParameterDefinition.SelectedRows[0].DataBoundItem as Parameter; if (param != null) { if (param.Id == ParameterId.Eigentumsnummer || param.Id == ParameterId.Typ || param.Id == ParameterId.ServerId) { // Disable loading of masked editor when Eigentumsnummer or Typ is edited // otherwise special characters cannot be inserted by user e.EditorType = typeof(RadTextBoxEditor); return; } e.EditorType = typeof(RadMaskedEditBoxEditor); } }
private void MasterTemplate_EditorRequired(object sender, EditorRequiredEventArgs e) { }
void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e) { AddTextToListBox(" EditorRequired " + e.EditorType.ToString()); }
private void rgAccount_EditorRequired(object sender, EditorRequiredEventArgs e) { if (e.EditorType == typeof (GridSpinEditor) && rgAccount.Columns["StopPercent"].IsCurrent) { e.EditorType = typeof (TrackBarEditor); } }
void radTreeView1_EditorRequired(object sender, EditorRequiredEventArgs e) { AddEventRoot("EditorRequired"); AddTextToListBox(string.Format(" Editor type: {0}", e.EditorType.ToString())); }