|104464||Jul 20,2012 08:03 AM||Aug 23,2012 08:43 AM||ASP.NET MVC (Classic)||1|
I am using Asp.Net MVC Syncfusion grid.
I have applied data annotations on my business objects that I bind with syncfusion grid.
Please suggest what is best approach here.
Thanks for using Syncfusion Products.
Grid MVC will support Data annotation attributes. Please refer to the following code snippets:
public class EditableOrder
// Validation set to the orderId and customerId
[Required(ErrorMessage = "Order ID is required.")]
public int OrderID
[Required(ErrorMessage = "Customer ID is required.")]
[StringLength(5, ErrorMessage = "Customer ID must be 5 characters.")]
public string CustomerID
.. . .
Add the following script files to your layout.cs within the head tag. Please refer to the following code snippets:
We have prepared the sample for your requirement and the same can be downloaded from the following link:
Also we would request you to check the following online sample link:
Please try this and let us know if you have any other queries.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.