-
Notifications
You must be signed in to change notification settings - Fork 161
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
Validator service for igxGrid editing #6501
Comments
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
There has been no recent activity and this issue has been marked inactive. |
Any idea when this tentatively might be released? |
@mikerentmeister This item is in our backlog plans for the current quarter. We will update the item with an estimated release date soon! @radomirchev |
There has been no recent activity and this issue has been marked inactive. |
Any updates on this in terms of estimated delivery? |
@mikerentmeister We kicked this item off this week. What we're planning is to expose |
Some special things that I would love to be considered:
|
@sdimchevski @dkamburov Since there are some suggestions in the above comment: #6501 (comment) related to UI, specifically how the invalid state will be reflected in the editor/cell/row it might also be good to kick off some design for those. Maybe some design for how validation errors should appear in editors and also some invalid cell state design. |
@mikerentmeister
To me both of these make sense only in the context of a transaction service, where you can track the changes and their validity. So they should only apply if you have transaction service and any validity state (of the grid, row or cells) when you're not currently in edit mode should be based on the pending transactions. Still wanted to ask to make sure that would align with your expectations. |
I misspoke, I meant a red border around an invalid cell. Probably a class on the igx-grid-cell like "igx-grid__td--invalid". I just want to make sure it works whether or not you use a custom igxCell/igxCellEditing template. When using batch editing, the border should persist, even if you leave the cell. Only when the user is editing an invalid cell, this is how I would envision the error message being shown:
Probably both if possible, but I would settle for just the first if the second is too hard
In my opinion, probably the moment an invalid value is entered in an editor. The reason being is that's generally when Angular's FormControl would be marked as invalid
When batch edit mode is off I would still see value in having a red border around a cell you're currently editing if it's invalid |
@sdimchevski We'll need a design for those validation error messages. Can you take a look on those when you have time. Can be added directly into the spec - https://github.com/IgniteUI/igniteui-angular/wiki/Grid-Validation-Specification |
@dkamburov @damyanpetev @kdinev I've updated the specification with the initial draft of the dev experience and API so that we can start reviewing and discussing it. |
Spec is updated with design hand-off link in Figma |
The spec looks like it will meet all of my needs, thanks very much! |
@dkamburov @ChronosSF @damyanpetev @kdinev Specification is updated and ready for review/discussion. |
Is your feature request related to a problem? Please describe.
As a developer, I would like to be able to reuse some or all of my forms validation logic with the
igx-grid
editing.Describe the solution you'd like
Currently, if I want to validate the igx-grid row or cell editing and display different validation messages, stop user navigation, etc. I have to write an entirely custom validation logic. There's also no unified way to plug validation into the grid editing. I would like some mechanism, like the grid transaction service, which allows me to define validation logic and events it triggers on, similar to forms validation.
Describe alternatives you've considered
Write an entirely custom validation logic.
Additional context
This affects maintainability of applications using igniteui-angular.
Consider #4135
The text was updated successfully, but these errors were encountered: