Regarding Setting date in datepicker which is out of min max range.
New DiscussionHello Team,
I have two date columns: action_date and action_due_date. If a row contains a date that is outside the currently allowed range and the user attempts to edit that row, the original (out-of-range) date should still be displayed without error message.. Additionally, the user should be able to save the row as long as they have not selected a new date inside the current valid range.
I am using a different syntax to bind the igGrid. Below is a sample column configuration for your reference:
{
columnKey: “action_date”,
editorType: “datepicker”,
required: true,
editorOptions: {
dateInputFormat: “yyyy-MM-dd”,
valueFormat: “date”,
datepickerOptions: {
changeMonth: true,
changeYear: true
},
validatorOptions: {
required: true,
notificationOptions: {
mode: “popover”
},
errorMessage: resource_d3_process.ActionDateReq
}
}
}
Could you please guide me on how to apply custom validation in this case?
Also, if I apply custom validation, will it interfere with the existing required validation? Specifically, I want to ensure that the original out-of-range date is not reset automatically and that validation only applies when the user selects a new date.
Is there any way i could turn off the max min range validation? As the date selected will always be in range during adding time and if user edit after 3 date still that day would be visible and user can change the date to new if he wants wihtin current new range?
Looking forward to your response.
Thanks and regards,
Rohit Rawat