The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have an ejs-grid with a booleanedit type column and a dropdownedit type column. How can I make the dropdown selection required only when the booleanedit column is checked?
JCJoseph Christ Nithin Issack Syncfusion Team March 20, 2023 12:08 PM UTC
Hi Jazzy,
Greetings from
Syncfusion support.
Based on your query,
you want to validate a column in the grid based on another column value. Your
requirement can be achieved using the custom validation. We have already
discussed the same in detail in the below documentation. Please refer the below
documentation for more details.
I came across this explenation, but I couldt follow it. In particular the customFn method with the switchcase. Could you tell me what part of that code I need to adjust to make a booleantype column enable/disable the validation for another column.
DMDineshnarasimman Muthu Syncfusion Team March 23, 2023 06:05 PM UTC
Hi Jazzy,
Query: Adding validation to column with dropdownlist
We have analyzed your query about the adding validation
to column with dropdownlist in the documentation. The window['role'] stores the
value of the one column and using switch case we validate the values of other
column. This validation method is added to the column through
column.validationRules. We have attached the documentation link for your
reference.