-
Notifications
You must be signed in to change notification settings - Fork 518
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
on-select-all="fSelectAll()" #307
Comments
Hi @karthicjayaraman , Can you please help to replicate the problem in JsFiddler or Plunker? |
Can reproduce here. The output model is updated, but only AFTER the |
I see.. so in other words, during Does this also happen in
|
Yes, happens in both. |
@JeffreyATW , @karthicjayaraman Thanks for the info. This is what I'm afraid most.. it happened before, and it forced me to use the $timeout. I'll see what I can do about this. |
Great .. Thanks a lot for the response . On Wed, Jul 1, 2015 at 1:59 AM, Steven notifications@github.com wrote:
|
I had the same issue but it is solved when you specify property of what should be updated in output model: output-properties="id name ticked" |
Nope, we have that set. It works for |
Hi all, Sorry but my current project leaves me almost no time to update the directive. @JeffreyATW , does $watch-ing the output-model work? |
Yes. |
changing a line worked for me. this line: $scope.onSelectAll(); to this: $timeout( function() { |
Hi all, I recently hit similar problem in a complex page, and, after browsing around, one possible solution is simply to add child object on the
Then in your controller, as usual:
I hope this helps. @prabuinet , Further reading: http://juristr.com/blog/2014/11/learning-ng-databinding-doesnt-work/ |
I am still having issue with this for both the select-all and select-none. Has it not been resolved? If not, what $watch statement do you recommend? Thanks. |
Does adding child object on the output-model work for you?
Then in your controller, as usual:
|
Hi ! I also have the same problem, but only for on-select-all. Any update :) ? |
Thanks for the great directive but I am still having issue with this for both the select-all and select-none. Any plans on fixing this? |
Here's a fix for this issue: #461 |
Any ideas what is best way to intercept click event on "Select All" button? What I want to achieve, is catch click event on "Select All" button and either accept if some conditions are met or block and reject the operation of selecting all objects. Docs for on-select-all states:
but it's not clear to me, the callback on-select-all is triggered before, at the same time or after the item is clicked? |
@aryniec, It's triggered after all items' selection property is set to Generally speaking, all events are triggered after the selection changes happen. |
@isteven then what would be best way to intercept this "Select All" click, both Angular 1.5 and angular-multi-select way? |
output-model is not updated when using on-select-all property.
It would be very helpful for me if you could provide how to get the length of the output-model when select the " on-select-all" option.
The text was updated successfully, but these errors were encountered: