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

Add ability to change asyncMode during lifetime #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add ability to change asyncMode during lifetime #236

wants to merge 1 commit into from

Conversation

Karql
Copy link

@Karql Karql commented Sep 29, 2015

Hi,

I'm using successfully your pagination controll :)
I need the ability to change asyncMode during lifetime, so I add it.
If you want you can merge it :)

Best regards,
Mateusz

@michaelbromley
Copy link
Owner

Hi,

Thanks for the contribution. Can you outline the use-case and how to use your changes?

@Karql
Copy link
Author

Karql commented Oct 1, 2015

Hi,

I have async list with select items.

list

When I click 'View selected' and unselect item this item disappears.

(
example:

  • pagesize 10
  • 20 selected items
  • you are on first page
  • unselect item
  • item disappears
  • in async mode you don't have items from second page, so you can't bring first item from second page to first. Without refresh request on first page remain 9 items. When you unselect other 9 items from first page, first page will be blank. You move to second page but there is no second page now.
    )

I don't want make request to server every unselected item to refresh list.
Instead it in 'View selected' mode I get all selected items and turn off async mode :)

I hope you understand me.

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

Successfully merging this pull request may close these issues.

2 participants