Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to do validation with inline "grid"? #2087

Open
mansurdegirmenci opened this issue Aug 30, 2021 · 4 comments
Open

[Question] How to do validation with inline "grid"? #2087

mansurdegirmenci opened this issue Aug 30, 2021 · 4 comments
Labels

Comments

@mansurdegirmenci
Copy link
Contributor

Validation is available when using forms and it's a nice feature. How can I do validation while updating a data in the grid? I'm asking for an idea or if there is a missing situation, can it be added as a feature?

@mpf82
Copy link
Collaborator

mpf82 commented Aug 30, 2021

You can use these events to validate the user input before/after editing:

http://w2ui.com/web/docs/1.5/w2grid.onEditField

http://w2ui.com/web/docs/1.5/w2grid.onChange

@mpf82 mpf82 added the Question label Aug 30, 2021
@mansurdegirmenci
Copy link
Contributor Author

Thanks, it was instructive for me. but the save method is active. In fact, when the save button is clicked, validation is done without sending a request. and it should be shown on which line it made an error. I'm waiting for your ideas, thanks for everything :)

@mansurdegirmenci
Copy link
Contributor Author

We have to ask ourselves if "grid validation" should be part of the library :)

image

@vitmalina
Copy link
Owner

I do like the idea. Will think about it. You can implement it now with the events that we have, thought. May be I just need to do a good demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants