multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

How to manually return true/false to BeforeMoveToLeft/Right based on ajax request success?

Open Jogii opened this issue 4 years ago • 3 comments

I am making a ajax call within the BeforeMoveToLeft/Right event but i do not know how to return based on ajax success response the true/false to the event in order to proceed/do not proceed the change in the selects. Ithere a way we can inject true/false to these multiselect function based on service response to make them work?

Jogii avatar Jun 11 '20 20:06 Jogii

Hi @Jogii

Probably you need to make use of a promise in order to make the function wait for your ajax request to be done ?

crlcu avatar Nov 30 '20 07:11 crlcu

I'm sorry, it's not the answer you looking for, but BeforeMoveToLeft/Right event does not fire with me, so how do you manage it? thanks

hossam-abdelmajeed avatar Jul 27 '21 09:07 hossam-abdelmajeed

Perhaps you can check the async / await functions?”.

Sent from my iPhone

On 27 Jul 2021, at 12:52, Hossam Abdelmajeed @.***> wrote:

 I'm sorry, it's not the answer you looking for, but BeforeMoveToLeft/Right event does not fire with me, so how do you manage it? thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

crlcu avatar Jul 27 '21 16:07 crlcu