BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Paul,
Thanks for using Syncfusion products.
Query: “Why wouldn't my validation rules be triggering here when save is pressed?”
We have analyzed the reported query and suspect that the validation is not triggered due to default values in the added row (For number-0, string- “” will be added by default). By default, the added row will contain default values for batch editing. And it is advisable to use batch add but we can provide the default value to column with the “DefaultValue” property of the columns.
@(Html.EJ().Grid<object>("Grid") . . . . .Columns(col => { col.Field("OrderID").HeaderText("Order ID").DefaultValue(100).IsPrimaryKey(true) Add(); col.Field("CustomerID").HeaderText("Customer ID").DefaultValue("ASK").Width(80).Add(); }) |
The above DefaultValue property can be used to provide the default values to the column while normal/dialog editing.
Please let us know if you have any queries or we misunderstood your requirement.
Regards,
Madhu Sudhanan. P