Thanks, but can you provide a user/password, your example requires login.
Thank you,
Gabriel
--
Thanks, but can you provide a user/password, your example requires login.Thank you,Gabriel
From: agile-too...@googlegroups.com [mailto:agile-toolki...@googlegroups.com] On Behalf Of Janis Volbergs
Sent: Wednesday, November 14, 2012 9:16 AM
To: agile-too...@googlegroups.com
Subject: [atk4] auto-paginatorJust out of curiosity, developed a simple auto-paginator which would work with any Grid (and also lister).Code:$g=$this->add("Grid");
$g->setModel($m, array("id", "name"));
$g->add("misc/Controller_AutoPaginator")
->setLimit(10);Example here: http://new.ambienttech.lv/record.htmlWhen you scroll page to bottom, it would reload the grid adding 10 more rows.I must note that it's very trivial and is not adding actual 10 lines, but rather re-reloading the grid with increased limit. In future, when ui.grid is revamped, we will have room to make it more efficient.Also, it was nice to find that 12 lines of code was enough to make this controller work :) Actually, could be even a few lines less.This controller is part of misc add-on namespace and available in master branch.Regards,Janis--
--
Just out of curiosity, developed a simple auto-paginator which would work with any Grid (and also lister).Code:$g=$this->add("Grid");
$g->setModel($m, array("id", "name"));
$g->add("misc/Controller_AutoPaginator")
->setLimit(10);Example here: http://new.ambienttech.lv/record.htmlWhen you scroll page to bottom, it would reload the grid adding 10 more rows.I must note that it's very trivial and is not adding actual 10 lines, but rather re-reloading the grid with increased limit. In future, when ui.grid is revamped, we will have room to make it more efficient.
Also, it was nice to find that 12 lines of code was enough to make this controller work :) Actually, could be even a few lines less.This controller is part of misc add-on namespace and available in master branch.