GithubHelp home page GithubHelp logo

jqgridbundle's Introduction

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

jqgridbundle's People

Contributors

michelpa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jqgridbundle's Issues

How to generate a CRUD ?

I am trying this bundle in my application but i want to know if it's possible to generate a CRUD and how ?

Thanks.

Passing function name in ColModel array

I would like to pass a formatter function name in the colmodel options array, in order to have a cell display a specific icon instead of the numeric value passed, but it ends up as a quoted string (and hence isn't interpreted as a function reference in the rendered JS). Any other idea how I would go about this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.