can someone give me basic tips for handling subgrid & multiple tab grid on laravel.
I don’t understand if I need more controllers and more blade view.
Thank in advance
You can make multiple tabs grid same way as you make single grid in laravel (controller/view).
You only need to prepare $out1 $out2 $out3 etc in controller by calling multiple $g->render() function and pass all of them to view. Then put tabs html in blade view and echo respective $out variables in tab DIV tags.
and what about subgrid?
I’m trying join your laravel example with subgrid demos, without success
Hey Mr Gianluca, May be you use multi tab with ajax, wher every tab with url link. every tab is one grid/method. I use this methode in Codeigniter use librrary http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm. Regards, Samsun
Resolved via remote session.
Continuing the guide: https://www.gridphp.com/laravel-datagrid/
To enable subgrid, process is simple:
Step1: Add subgrid method / config in controller. See attached file WelcomeController.php 47-47, 71-97
Step3: Add view for subgrid, detail.blade.php (used in WelcomeController.php line 96)
Files source code: https://gist.github.com/gridphp/8e4c337cf4e5c81771b60a16b28d541b
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?