Inline Validation not showing message

I upgraded my controls to 18.2.0.45 and the validation in the grid stopped showing an error message.  the field will be outlined with red and you can't save, so it seems to be recognizing the validation, but there is absolutely no meaningful message displayed.  This did work in the prior version.  Below is my grid definition.  Is there something I'm missing here? 

<SfGrid DataSource="@applicationOptions" TValue="ApplicationOption" AllowPaging="true" AllowSorting="true" EnableHover="true" Toolbar="@(new List<string> {"Add","Search" })">
                <GridPageSettings PageCount="5" PageSizes="true"></GridPageSettings>
                <GridEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" ShowDeleteConfirmDialog="true"></GridEditSettings>
                <GridEvents OnActionBegin="ActionBeginHandler" TValue="ApplicationOption"></GridEvents>
                <GridColumns>
                    <GridColumn Width="100">
                        <GridCommandColumns>
                            <GridCommandColumn Type="CommandButtonType.Edit" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-edit"CssClass="e-flat" })"></GridCommandColumn>
                            <GridCommandColumn Type="CommandButtonType.Delete" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-delete"CssClass="e-flat" })"></GridCommandColumn>
                            <GridCommandColumn Type="CommandButtonType.Save" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-save"CssClass="e-flat" })"></GridCommandColumn>
                            <GridCommandColumn Type="CommandButtonType.Cancel" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-cancel-icon"CssClass="e-flat" })"></GridCommandColumn>
                        </GridCommandColumns>
                    </GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.ApplicationOptionIdHeaderText="Id" IsPrimaryKey="true" IsIdentity="true" Visible="false"></GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.ApplicationOptionCodeHeaderText="Code" ValidationRules="@(new ValidationRules { Required = true})"></GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.ApplicationOptionNameHeaderText="Name" ValidationRules="@(new ValidationRules { Required = true})"></GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.DescriptionHeaderText="Description"></GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.OptionsHeaderText="Options"></GridColumn>
                    <GridColumn Field=@nameof(ApplicationOption.OptionValueHeaderText="Option Value" ValidationRules="@(new ValidationRules { Required = true})"></GridColumn>
                </GridColumns>
            </SfGrid>

5 Replies

RN Rahul Narayanasamy Syncfusion Team July 20, 2020 04:19 PM UTC

Hi Susan, 
 
Greetings from Syncfusion. 
 
Query: Inline Validation not showing message 
 
We have validated your query and checked the reported problem at our end. We could not reproduce the reported problem at our end. The validation message is shown correctly while saving without entering any values in the validation fields. Find the below sample for your reference. 
 
  
If you are still  facing the problem, then could you please share the below details. It will be helpful to validate and provide a better solution. 
 
  • Full grid code snippets along with Class properties.
  • Video demonstration of the problem.
  • Reproduce the problem in the provided sample and revert to us or share a simple reproduceable sample.
 
Regards, 
Rahul 
 



SS Susan Shaw July 31, 2020 05:45 PM UTC

It took me a while, but I was finally able to recreate the issue in the sample you sent. If you bring the grid into edit mode by double clicking the row, the validation message works perfectly. However, if you bring the grid into edit mode via the command button, the validation message does not show up until you click outside the row, or click the save button. I've been able to reproduce this on a consistant basis


JP Jeevakanth Palaniappan Syncfusion Team August 3, 2020 01:29 PM UTC

Hi Susan,  
  
We have validated your query and we would like to inform you that we have changed the validation behavior from version 18.2.0.44. From this version(18.2.0.44), the validation message will be shown only for form submit and after the value change in the particular field. 
   
We have changed this behavior based on the Microsoft Blazor EditForm behavior. Hereafter the validation message will be shown based on the value change in the particular field or while submitting the form.  
   
Please let us know if you have any other concerns.  
   
Regards,  
Jeevakanth SP. 



SS Susan Shaw August 3, 2020 02:38 PM UTC

but the validation message is not showing up in the field that was updated if you bring the grid into edit mode via the command button.  It's behaving diffreently based on how it's brought into edit mode.  To me, the validation should work the same whether the grid is brought into edit mode via a double click or clicking the command button.


RN Rahul Narayanasamy Syncfusion Team August 4, 2020 12:40 PM UTC

Hi Susan,  
    
Sorry for the inconvenience. 
      
We have checked the reported problem and we are able to reproduce the reported at our end too. We have confirmed it is a bug and logged the defect report “validation messages does not shown while edit using command column”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming  weekly patch release which is expected to be rolled out on or before end of August, 2020    
    
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.    
    
    
Until then we appreciate your patience.     
  
Regards,  
Rahul 


Loader.
Up arrow icon