This is a migrated thread and some comments may be shown as answers.

Editor Validated and Validating events

1 Answer 71 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Saji
Top achievements
Rank 1
Saji asked on 13 Jan 2017, 04:54 PM

I noticed that my below code which associates event delegates with a cell textbox editor does not signal those events. Could you please assist ?

        private void Grid_CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
        {

            switch (column.Name)
            {
                case "Column1":

                        VirtualGridTextBoxEditor editor = (VirtualGridTextBoxEditor)e.Editor;
                        RadTextBoxElement elmnt = (RadTextBoxElement)editor.EditorElement;
                        elmnt.Tag = editor;
                        editor.Validated += Editor_Validated;
                        editor.Validating += Editor_Validating;

 

-----------------------------------

 

        private void Editor_Validating(object sender, CancelEventArgs e)
        {

                   // NOT TRIGGERED
        }
        private void Editor_Validated(object sender, EventArgs e)
        {

                   // NOT TRIGGERED
        }

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Jan 2017, 08:36 AM
Hello Saji,

Thank you for writing.

You should use the CellValidating or RowValidated events of the control. Detailed information is available here: Data Validation.

I hope this information is useful. Let me know if you need further assistance.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
VirtualGrid
Asked by
Saji
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or