Example #1
0
        private void gridViewTranslation_CellValidating(object sender, Telerik.WinControls.UI.CellValidatingEventArgs e)
        {
            RadTextBoxEditor editor = e.ActiveEditor as RadTextBoxEditor;

            if (editor != null)
            {
                RadTextBoxEditorElement element = editor.EditorElement as RadTextBoxEditorElement;
                SpellChecker.Check(element.TextBoxItem.HostedControl);
                correctedValue = e.ActiveEditor.Value.ToString();
            }
        }
Example #2
0
        private void gridView_ValueChanged(object sender, EventArgs e)
        {
            RadTextBoxEditor editor = sender as RadTextBoxEditor;

            if (editor != null)
            {
                if (editor.Value != null)
                {
                    this.radTextBoxCellContent.Text = editor.Value.ToString();
                }
                else
                {
                    this.radTextBoxCellContent.Text = String.Empty;
                }
            }
        }