Hello,
Is there a way to override the mouse click event behavior of the grid's column ValidationRules="@(new ValidationRules { Required = true })" on EditMode.Batch?
The scenario I have is that, I have 40+ columns with 15 of are required columns. However, those required columns are scattered across the grid. Clicking/Hitting tab or shift+tab button allows you to go back and forth on columns in order. But that is not the case when you use your mouse on selecting the next record.
Shown on the snapshot below, Status and PersonnelName column are required fields that is already populated. But when I clicked the Birthdate column, it jumps to the Main Grade column which is required as well. Then it restricts me from editing other non-required columns unless I populate it with value. The same will happen on the next required field if I click again other non-required fields not only until "all" required fields are populated or I used the tab or shift+tab button.
What I need to achieve is to let the grid still have the [Required] Validation rule in it and at the same time, allow me to edit the non-required columns that appears before the next required column of that same record on mouse click event. Please do note that other required fields are scattered across the grid.
Hope you can help me with this situation.
Thank you and keep safe,
Limuel
Hello Vignesh,
Thank you for your responses and effort. I greatly appreciate it.
Given your explanation above, I might move-on with the next option I have in mind. That is to use a custom validation instead of the built-in "required field" validation. I already looked in the documentation and other forum thread and can't find a direct solution. So far I can't find any yet. It will be a great help if you can provide me a sample on how to achieve since I am in a bit of time constraint and a newbie in Syncfusion component.
Appreciate your usual help and response.
Kind regards,
Limuel