blazor-docs/knowledge-base/listview-validation.md

33 строки
782 B
Markdown

---
title: ListView Validation
description: How to add validation to the ListView and cancel the operation if it fails.
type: how-to
page_title: ListView Validation
slug: listview-kb-validation
position:
tags:
res_type: kb
---
## Environment
<table>
<tbody>
<tr>
<td>Product</td>
<td>ListView for Blazor</td>
</tr>
</tbody>
</table>
## Description
How to add validation to the ListView Edit and Insert operations?
How to cancel the event when validation fails and keep the ListView in edit/insert mode?
## Solution
An example is available in the following project: [https://github.com/telerik/blazor-ui/tree/master/listview/ValidationExamples](https://github.com/telerik/blazor-ui/tree/master/listview/ValidationExamples).