04-02-2022, 10:27 PM
(This post was last modified: 04-02-2022, 11:08 PM by Alexandre Machado.)
> The problem occurs when I want to insert code in the OnAsyncChange and OnClick events simultaneously
Can you please elaborate what's your use case here?
As I mentioned in my response this is the rule of thumb regarding CheckBoxes:
- If you want to respond to state change (checked/unchecked), OnChange/OnAsyncChange are the events you must use.
- If you want to respond to mouse clicks over the control (regardless of the state), OnClick/OnAsyncClick are the events you must use
I'm curious to know what's your use case where you need to use both... (and yes, they both work)
Can you please elaborate what's your use case here?
As I mentioned in my response this is the rule of thumb regarding CheckBoxes:
- If you want to respond to state change (checked/unchecked), OnChange/OnAsyncChange are the events you must use.
- If you want to respond to mouse clicks over the control (regardless of the state), OnClick/OnAsyncClick are the events you must use
I'm curious to know what's your use case where you need to use both... (and yes, they both work)

