Replies: 2 comments
-
Hi, you could check it here, it's an angular example but logic is the same |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks for the link. That example seems to use the afterfocus event, so still suffers from the issues outlined with that approach (there's no dropdown there to check that issue - but I can see that pasting data does not fire the afterfocus event, so can't use it for the processing/validation) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my grid, I have an eventlistener on
afteredit
event, which I use to send data to a backend for processing and validation.However, I would like to only do the validation if the focus has moved to a new row. I was hoping to be able to do something like this;
But unfortunately
getFocused()
returns the same cell being edited before it has moved. And in the case of selecting an option from a dropdown, it always returns null. In both cases, I can't know if the user has "moved on" to a new row.I then thought about using
afterfocus
event. But then I would be sending data twice in a lot of cases (for both afteredit and afterfocus), andafterfocus
isn't called in certain cases (like when selecting option from a dropdown, or pasting data)Any ideas on how I could reliably do some validation logic, but only when the user has finished with the row they are on? It doesn't have to be focus-based, but that's all I could think of.
Beta Was this translation helpful? Give feedback.
All reactions