jqgrid symfony2 integration
JavaScript PHP CSS
Switch branches/tags
Nothing to show
Latest commit 0e995ce Oct 17, 2013 @michelpa Update README.md
Permalink
Failed to load latest commit information.
DependencyInjection refactoring May 30, 2012
FilterMapper typo Aug 24, 2012
Grid improvements based on yuriteixeira fork (filters) Aug 24, 2012
Resources improvements based on yuriteixeira fork (filters) Aug 24, 2012
Tests/Controller Ajout des fichiers Mar 27, 2012
Twig twig function to render all, or js and html separately Jun 4, 2012
.gitignore
EPSJqGridBundle.php Ajout des fichiers Mar 27, 2012
LICENSE License Mar 27, 2012
README.md
composer.json Update composer.json Aug 21, 2012

README.md

JqGridBundle

JqGrid implementation for Symfony2.

Compatibility: Tested with Symfony > 2.0.12 (not tested > 2.1.x)

Full working demo

CHANGELOG

2012-06-04: BC break - change rendering function jqgrid_js to jqgrid

Installation

  1. Add this bundle to your vendor/ dir

    Add the following lines in your deps file:

      [EPSJqGridBundle]
        git=git://github.com/michelpa/JqGridBundle.git
        target=/bundles/EPS/JqGridBundle
    

    Run the vendor script:

      ./bin/vendors install
    
  2. Add the "EPS" namespace to your autoloader

       <?php
       // app/autoload.php
       $loader->registerNamespaces(array(
           'EPS' => __DIR__.'/../vendor/bundles',
       // your other namespaces
       ));
  3. Enable the bundle in the kernel

      <?php
         // app/ApplicationKernel.php
         public function registerBundles()
         {
             return array(
                 // ...
                 new EPS\JqGridBundle\EPSJqGridBundle(),
                 // ...
             );
         }
  4. Add assets to your layout

    JS

      bundles/epsjqgrid/js/i18n/grid.locale-fr.js
      bundles/epsjqgrid/js/jquery.jqGrid.min.js
    

    CSS

      bundles/epsjqgrid/css/ui.jqgrid.css
    
  5. Configuration

in config.yml:

eps_jq_grid: ~

or if you want to specify the date format (for datepicker), you've got to set the date format in js AND in php format (conversion):

eps_jq_grid: 
    datepicker_format: dd/mm/yy
    datepickerphp_format: d/m/Y

Grid example

Full working demo