I'm trying to do this, and no luck. Here's the code as I set it:
Grocery_CRUD.php:
class grocery_CRUD_Layout extends grocery_CRUD_Model_Driver
{
private $theme_path = null;
private $views_as_string = '';
private $echo_and_die = false;
protected $theme = null;
protected $default_true_false_text = array('inactive' , 'active');
protected $css_files = array();
protected $js_files = array();
protected $js_lib_files = array();
protected $js_config_files = array();
protected $paging_options = null;
function set_paging_options(array $options)
{
$this->paging_options = $options;
}
.
.
.
protected function showList($ajax = false, $state_info = null)
{
$data = $this->get_common_data();
.
.
.
$default_per_page = $this->config->default_per_page;
$data->paging_options = $this->config->paging_options ? $this->paging_options : array('10', '25', '50', '100', '1000');
$data->default_per_page = is_numeric($default_per_page) && $default_per_page >1 && in_array($default_per_page,$data->paging_options)? $default_per_page : 25;
.
.
.
and in my controller class:
$this->config->load('grocery_crud');
$this->config->set_item('grocery_crud_default_per_page', '1000');
$crud->set_paging_options(array(1000));
As far as I can tell, I've copied the suggested code exactly, but I still get the "10, 25, 50, 100" options in the dropdown, nothing more.
Help? I really need to increase this to 1000, but only for this one screen...