Editor Validated and Validating events

2 posts, 0 answers
  1. Saji
    Saji avatar
    13 posts
    Member since:
    Mar 2016

    Posted 13 Jan Link to this post

    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
            }

  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 16 Jan Link to this post

    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.
Back to Top