Select extension: Get rows to be selected in user-select event handler
Select extension: Get rows to be selected in user-select event handler
dmcclean
Posts: 13Questions: 2Answers: 0
The select extension supports a user-select event which can prevent items from being selected by a user. For a select event which could cause multiple rows to be selected, is there any way to determine which rows would be selected? I would
like to potentially cancel the operation based on which rows are about to be selected.
Thanks,
Don
This discussion has been closed.
Answers
Currently no - I'm afraid there is no way to cancel such a selection. The
user-select
event occurs before that calculation happens.What you would need to do is listen for
select
and then check the selected rows to see if they should be selectable or not. If not deselect them with the API. It should happen quickly enough that the user wouldn't see it...!Allan