New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid Remote Validation

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
editing_remote_validation.cshtml
Editing_Remote_ValidationController.cs
ValidationController.cs
ProductViewModel.cs

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

The Telerik UI for ASP.NET Core Grid supports remote validation. The remote validation is a custom validation during which the Data Grid posts the values to the server through an AJAX request, and depending on the server response, the component displays a valid or invalid state.

The validation itself is performed on the server-side. When the Grid sends a request for editing or creating a record, a method declared in the [Remote] attribute of the the respective field executes and returns information on whether the new data is valid or not.

This demo shows how to create a custom validation rule that handles the built-in Remote attributes in your model.

For more information about the editing capabilities, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on the available data-editing approaches.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources