-
Notifications
You must be signed in to change notification settings - Fork 108
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
Unable to show all row #193
Comments
if this is still the case in 1.5 can you patch it? |
how? |
Yes i can but can you tell me how?? |
check out how to create pull requests here Mark Vaughn On Wed, Feb 18, 2015 at 8:11 AM, sameer1750 [email protected]
|
I have comitted the changes, you can review it and push it. |
So Displaying all row from the dropdown does not work
My javascript code has this :
"lengthMenu": [
[10, 25, 50, 75, 100, -1],
[10, 25, 50, 75, 100, "All"] // change per page values here
],
So to display all values i am giving a value of -1 as read by me in datatables
But because of this function in datatables.php file it wont allow me to show all rows
protected function paging()
{
if(!is_null($this->input['start']) && !is_null($this->input['length']))
{
$this->query->skip($this->input['start'])->take((int)$this->input['length']>0?$this->input['length']:10);
}
}
A little change to this paging function would help
protected function paging()
{
if(!is_null($this->input['start']) && !is_null($this->input['length']))
{
if($this->input['length'] > 0){
$this->query->skip($this->input['start'])->take((int)$this->input['length']);
}
}
}
The text was updated successfully, but these errors were encountered: