Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#828431
Dear
I need to add enable Validation and Disable Validation.
As on attached image, if the "Declaration" is Not Available then "justification/Remarks" is required other wise not required.
I could not find any way to do it. Please someone help me
Attachments
image_2020_09_20T05_15_58_286Z.png
image_2020_09_20T05_15_58_286Z.png (29.87 KiB) Viewed 10603 times
#828432
Better keep check list box.

[url=https://www.fita.in/devops-training-in-chennai/]DevOps Training in Chennai[/url]
[url=https://www.fita.in/devops-training-in-bangalore/]DevOps Training in Bangalore[/url]
[url=https://www.fita.in/devops-training/]DevOps Online Course[/url]
#829670
Grid has a new feature which allows us to validate the data entered on the row and column level.

So, Let's see how it can be done with an example. Suppose we have a Grid like below: We want to validate the data in the FirstName, LastName and SSN columns only. The validation should be shown according to the rules that we define.

For this purpose, let's create a custom control to show the error messages and it's binding with the Grid.

First of all, create a class having three properties (string) like below:

public class ValidationRule { public string FirstName { get; set; } public string LastName { get; set; } public string SSN { get; set; } }

Now, create a custom validator control and inherit it from the default Grid Validation Control. [crayon-5b8a2c0a7e25069187860/] Next, let's add some validations for our columns in GridView_RowCommand event: [crayon-5b8a2c0a7e25d36253712/] Here, we are validating the first name and last name on their length and adding error.
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]