Пример #1
0
 void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     if (e.EditorType == typeof(RadDropDownListEditor))
     {
         e.EditorType = typeof(MyRadDropDownListEditor);
     }
 }
Пример #2
0
 private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     if (radGridView1.CurrentColumn.Name == "InkColumn")
     {
         e.EditorType = typeof(GridInkEditor);
     }
 }
Пример #3
0
 private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     if (e.EditorType == typeof(RadDropDownListEditor))
     {
         e.Editor = new CustomDropDownEditor();
     }
 }
Пример #4
0
 private void RadGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     if (e.EditorType == typeof(RadMultiColumnComboBoxElement))
     {
         e.EditorType = typeof(MyCustomEditor);
     }
 }
Пример #5
0
 // 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);
     }
 }
Пример #6
0
        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;
            }
        }
Пример #7
0
        /// <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);
            }
        }
Пример #8
0
 private void MasterTemplate_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
 }
Пример #9
0
 void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     AddTextToListBox("     EditorRequired  " + e.EditorType.ToString());
 }
Пример #10
0
 private void rgAccount_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     if (e.EditorType == typeof (GridSpinEditor) && rgAccount.Columns["StopPercent"].IsCurrent)
     {
         e.EditorType = typeof (TrackBarEditor);
     }
 }
Пример #11
0
 void radTreeView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     AddEventRoot("EditorRequired");
     AddTextToListBox(string.Format("    Editor type: {0}", e.EditorType.ToString()));
 }