Validation Error Message Shows up for populated field

Hi,

I am trying to get rid of the validation error message which shows up when I click "Edit" in grid toolbar. Despite the fact that the dropdown is populated and the user just wants to update its value, the error message still shows up when the edit button is first clicked. Once the control loses mouse focus - user changes the dropdown value, or clicks on the other control, the error message disappears.


How would I get rid of this unnecessary error message?


HTML:

<e-column field='visitId' headerText='Master Visit' width='200' textAlign='Left' editType='dropdownedit'

            [validationRules]='requiredRule' [edit]='editParams' [allowEditing]='userIsAllowed'

            type='string'></e-column>


TS:

this.editParams = {

params:

{

query: new Query(),

fields: { value: 'visitId', text: 'visitName' },

}

};


1 Reply

HK Harini Kannan Syncfusion Team July 10, 2023 01:13 PM UTC

Hi David,

 

As you have mentioned validation error message shows up when click "Edit" in grid toolbar. Based on your query we have prepared a sample by using the provided code the editType='dropdownedit' and [validationRules]='requiredRule' these properties are included in the ShipCountry column. When "Edit" is performed in the grid toolbar the validation error message is not displayed. We tried to replicate the issue in our sample but we can't able to reproduce the issue in our side. We have provided the sample and video demonstration for your reference.

 

Sample:  https://stackblitz.com/edit/angular-lk78yz-zeomhf?file=src%2Fapp.component.ts


If you are still facing the issue, please share your following details. which will help us to validate and provide a better solution.

  1. You have mentioned [validationRules]='requiredRule' can you please share the code you have mentioned in the requiredRule. Since we don't know the value assigned to the requiredRule property. 
  2. If you have a reproducible sample or otherwise replicate the issue in our sample that showcases the issue, please share it with us. Having a sample will enable us to directly analyze and validate the problem, which can lead to a faster resolution.
  3. Please provide the version of the Syncfusion package that you are using. This information is crucial for reproducing the issue accurately and ensuring that the solution aligns with the specific package version.


Please let us know if you need any further assistance.

 

Regards,

Harini K R


Attachment: videocapture_(3)_749899a0.zip

Loader.
Up arrow icon