tismaximo / ag-grid-row-model
There is no license information available for the latest version (dev-main) of this package.
Symfony implementation of the server side ag grid row model
Package info
github.com/tismaximo/ag-grid-row-model
Type:symfony-bundle
pkg:composer/tismaximo/ag-grid-row-model
dev-main
2026-04-06 18:58 UTC
Requires
- doctrine/orm: ^3.6
- symfony/http-foundation: ^7.0
- symfony/http-kernel: ^7.0
- symfony/serializer: ^7.0
This package is auto-updated.
Last update: 2026-04-06 18:58:30 UTC
README
This bundle implements the server side row model logic in accordance to the Ag Grid documentation, exposing a single service that takes care of retrieving the rows automatically requested by Ag Grid, and returning a Response object with the expected format.
Usage
Install the dependency with:
composer require tismaximo/ag-grid-row-model
Then, in your controller, create a new endpoint like so to use the implementation:
use AgGridRowModelBundle\Api\AgGridRowModelService ... #[Route(path: '/ag-grid-rows', name: 'example_ag_grid_rows', methods: ['POST'])] public function rows(Request $request, ExampleRepository $repository, AgGridRowModelService $service) {/*{{{*/ $qb = $repository->getCustomQueryBuilder(); // or null to get all fields return $service->generateResponse($request, $repository, $qb); }/*}}}*/
Service contract:
public function generateResponse(Request $request, EntityRepository $repository, QueryBuilder|null $qb): Response