Skip to content
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

Pagination Problem #182

Closed
ahmadronaghdev opened this issue Oct 14, 2016 · 1 comment
Closed

Pagination Problem #182

ahmadronaghdev opened this issue Oct 14, 2016 · 1 comment

Comments

@ahmadronaghdev
Copy link

ahmadronaghdev commented Oct 14, 2016

I Have 30,000 record in my table and create crud for this table but when laod this data i get error after minute
screen shot 1395-07-23 at 20 12 50

i check setModel Method in CrudPannel and select (*)

 public function setModel($model_namespace)
    {
        if (! class_exists($model_namespace)) {
            throw new \Exception('This model does not exist.', 404);
        }

        $this->model = new $model_namespace();
        $this->query = $this->model->select('*');
    }

i think its load all data then shown in table rather than select 10 last item and then select page 2
how can i fix this problem ?

@franciscocorrales
Copy link

franciscocorrales commented Oct 14, 2016

Have you enabled AJAX ?

You have to add $this->crud->enableAjaxTable(); in your index() method. AJAX loading is not enabled by default.

You can read more here.

This was referenced Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants