-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
use pjax and service implement datatable #1486
Comments
Hmm, I think you need to overwrite the render method and exclude the pjax request. public function render($view, $data = [], $mergeData = [])
{
if ($this->request()->ajax() && $this->request()->wantsJson() && ! request()->pjax()) {
return app()->call([$this, 'ajax']);
}
parent::render($view, $data = [], $mergeData = []);
}
On the other hand, maybe we can exclude pjax by default. If ever you make it work, can you submit a PR? May not be able to check this atm. Thanks! --EDIT-- |
I change my render like this
but no render table in view . |
I think , i need to Reinitializing datatable in pjax option but i don't now how cant i Reinitializing datatable ,
but data table jquery like below
|
Hi , I'm using service implement datatable with pjax page . when page refresh datatable show me correctly but when page change by pjax datatable doesn't work . how can i use pjax and service implement . my datatable is like this
The text was updated successfully, but these errors were encountered: