Hello,
I want sort the target and the source list after moving an item.
How can I do ?
Is there a post-moving function?
thanks.
Delphine
Picklist : sort after moving an item
You can sort the list through callback events available.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Yes but this function is called before that the item is moving.
I utilise the "onMoveToSource" function. In this function, I do :
" this.sourceList.sort();"
When I move an item on the target list to the source list, this function is called before the item is moving.
And so, my list is not sorted.
I utilise the "onMoveToSource" function. In this function, I do :
" this.sourceList.sort();"
When I move an item on the target list to the source list, this function is called before the item is moving.
And so, my list is not sorted.
You are right. We need callbacks after items moved. But you need to have 4 additional callbacks. You can raise a github request.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests