Well, there are times – i actually want to have a feature to show all the records together rather having pagination. Now there is a little trick to the same – you don’t need to break your code to achieve the same.
There is a small trick to the same. The code – what it dose – is checks for some value in config. There are 2 config files to look in for – 1 is the config file found in application/config folder. Other config file is found in the themes – folder. What we need to look in is the
The default value set in there is –
$config['crud_paging'] = true;
. That – if you set it to false – you will have pagination but you still have all the records shown up together.
Now, but then there is a catch to the same … If we make the change this way – then the listing of all the records is applied across all the functions. If you want to limit the same, then there is a small trick to it without altering the code. ie. make a copy of the theme you wish to work with, rename the folder to some sensible name – limitlessflexigrid. Instead of using flexigrid, set the theme to limitlessflexigrid where ever you want to show all the records together. In this – set the flag value in the config file to be false. Thats it, there you will now have option to see all the records irrespective of the function and also control it where you want to.