Skip to content
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

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

Open
Jogii opened this issue Jun 11, 2020 · 3 comments
Labels

Comments

@Jogii
Copy link

Jogii commented Jun 11, 2020

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?

@crlcu
Copy link
Owner

crlcu commented Nov 30, 2020

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 crlcu added the question label Nov 30, 2020
@hossam-abdelmajeed
Copy link

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

@crlcu
Copy link
Owner

crlcu commented Jul 27, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants