angularUtils icon indicating copy to clipboard operation
angularUtils copied to clipboard

Add ability to change asyncMode during lifetime

Open Karql opened this issue 10 years ago • 2 comments

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

Karql avatar Sep 29 '15 08:09 Karql

Hi,

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

michaelbromley avatar Oct 01 '15 07:10 michaelbromley

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.

Karql avatar Oct 01 '15 11:10 Karql