Stick it to THE MAN
Stick it to THE MAN

Reputation: 5701

Datagrid for Symfony?

I want to use a datagrid in one of my modules (Symfony 1.3, Propel ORM). I have spent a while searching the web, but everything I found expects a direct connection to teh db (mySQL) or is otherwise unsuitable.

I found the datagrid plugin (http://symfony.swisscenter.com/datagrid/exemples), but the documentation/examples are in French - and I'm not too keen on learning French just for the sake of using the plugin - besides, if all the users are French speakers, then it will be difficult to get support/help if/when I do hget stuck.

So my questions are:

  1. Is anyone aware of a good (PHP) datagrid component that I can use with SF?
  2. Is anyone out there (English speaker), using the SF datagrid plugin?

Upvotes: 3

Views: 6013

Answers (5)

Geshan
Geshan

Reputation: 1141

Going the javascrit way with jquery or Angular will be better.

Upvotes: 0

44_
44_

Reputation: 72

I recently went through the same thing and in the end we went with http://datatables.net/. You can use it with or without rest and we've found it fits our needs pretty nice.

Upvotes: 0

Muhammadali Shaduli
Muhammadali Shaduli

Reputation: 61

You can try to use extJS Grid. ExtJs is having well explained of documentation. We have used this in our sf 1.4 project.

Create a widget that will import extjs Grid

You will have to create rest api for data for the grid. This can be easily achieved by using sfDoctrineRestGeneratorPlugin for doctrine.

I could not find a plugin for propel orm. Rest API can be easily created without a plugin

For Editable ExtJs 4 grid documentation refer http://docs.sencha.com/extjs/4.0.7/#!/example/restful/restful.html

Upvotes: 0

Prasad
Prasad

Reputation: 1820

I think jqGrid is the best among all listed above. Allows inline editing, adding rows, searching, sorting, column selection, column reordering, resizing, etc out-of-the-box. Data formats that can be used are datasource, JSON & XML. Demos at: http://trirand.com/blog/jqgrid/jqgrid.html

Upvotes: 1

Radu Dragomir
Radu Dragomir

Reputation: 660

You can try a jQuery Plugin. Take a look at this collection

Upvotes: 4

Related Questions