EJ2 Grid - required: false in checkbox fails

We have a basic grid with inline editing.  If you have the following setup with required: false and you press Update in the grid with the checkbox not checked, it will throw an error saying this field is required.  If you remove the validation rule, it works as expected.

{ field: 'yearly_notification', headerText: 'Yearly Notification',
type:'boolean', displayAsCheckBox: true, editType: 'booleanedit',defaultValue: true,
validationRules: { required: true,}
},
{ field: 'day_90_notification', headerText: '90 Day Notification',
type:'boolean', displayAsCheckBox: true, editType: 'booleanedit',defaultValue: false,
validationRules: { required: false,}
},

2 Replies 1 reply marked as answer

MA Mark February 9, 2021 09:04 PM UTC

I have also verified this fails on other column types as well, like:

{ field: 'next_action', headerText: 'Next Action',
validationRules: { required: false,}
},


SM Shalini Maragathavel Syncfusion Team February 11, 2021 01:49 PM UTC

Hi Mark,

Sorry for the delay in providing the response. 

We have validated this case further from our end and considered this as a bug. We have logged defect report for the same as – When required is set as false in the validation rules, but while submit the form it validates”. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and will include the defect fix in our patch release scheduled on February 23, 2021. We appreciate your patience until then. 
 
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. 


Regards,
Shalini M. 


Marked as answer
Loader.
Up arrow icon