Re: AJAX based data grid for Rails App? Is there any code/approach I can leverage?

Peter De Berdt
Fri, 04 Apr 2008 07:46:50 -0000

On 04 Apr 2008, at 04:46, Greg Hauptmann wrote:

> I want to have a page in my Ruby on Rails application that is like a
> dynamic / updateable data grid.  Like a matrix or spreadsheet
> segment (x rows, y columns) which one can click in any of the cells
> and make an update, which triggers some AJAX code to fire off the
> update, and then the responses come back and update whatever else
> needs updating based on this change.
>
> Does Rails support this?  Is there a good plugin or sample
> application that does this I can look at?  Perhaps a prototype
> project example?

If it''s a full-featured grid you want, I''d suggest you to look
at
ExtJS. You''ll have to use JSON (or XML) to communicate between the
ExtJS components and the Rails (or whatever) backend.

Although it doesn''t provide an editable grid, the Ext Scaffold
Generator plugin does have some nifty features you can base your code
on:
http://inside.glnetworks.de/2008/01/18/announcing-ext-scaffold-generator-plugin-for-rails/


Best regards

Peter De Berdt