Switch branches/tags
Nothing to show
Commits on Dec 27, 2011
  1. Extended the readme to include many of the new features added since t…

    davebaldwin committed Dec 27, 2011
    …he original fork. Switched over to using markdown as the mark up language.
Commits on Dec 20, 2011
  1. The caption displayed in slave detail grids can now use arbitrary val…

    davebaldwin committed Dec 20, 2011
    …ues from the selected master row. $name entries in the caption string will be replaced the the column with name value in the selected row. If no $name entries are present then the value for the foreign_key_column will be appended to the caption.
Commits on Dec 19, 2011
  1. Removed the need for slave grids to be identified as such using a use…

    davebaldwin committed Dec 19, 2011
    …r supplied option. This is now handled automatically.
Commits on Dec 18, 2011
  1. The injection of additional pos tdata (to support passing in the grid…

    davebaldwin committed Dec 18, 2011
    … columns and master/slave detail information) has been move out of the default_options to allow more dynamic generation needed to support external controls.
    External controls allow buttons, drop down menus, etc. to inject additional parameters into the post data sent by the grid to the controller.  This can be used in some controller specific way or to change/add to the parameters used to filter or search.
  2. Deprecated using the grid_columns to drive the searching and filterin…

    davebaldwin committed Dec 18, 2011
    …g process to be more Rails like and to pave the way for additional search parameters to be injected into the params hash sent to the server and acted upon.
Commits on Dec 13, 2011
  1. Reloading of the master grid will cause all slave grids to be reset s…

    davebaldwin committed Dec 13, 2011
    …o they no longer show data as no row is now selected in the master grid.
  2. Internal paginate method was missing the first page of records becaus…

    davebaldwin committed Dec 13, 2011
    …e the current_page starts from 1 and not 0 as assumed by the method.
Commits on Dec 5, 2011
  1. Added detail_foreign_key option to master_details to allow the attrib…

    davebaldwin committed Dec 5, 2011
    …ute holding the master foreign key to be different to the attribute in the slave detail table holding the key to be matched.
Commits on Dec 1, 2011
  1. Remove the need for a controller to know about the grid columns being…

    davebaldwin committed Dec 1, 2011
    … displayed. This has some
    important consequences (apart from not being backwards compatible):
    1.  The controllers are more rails-like in that they have no knowledge about a view.
    2.  The same controller can respond to the same grid/model in different views and each
        grid/model view can show different model attributes.
    3.  The same controller can handle requests from master-detail views as well as slave-detail
    4.  There is less duplication because of (2 and (3) so the controllers and views are more DRY.
    To make existing controllers compatible just remove the second parameter to the grid_* method
    calls.  The GRID_COLUMNS declaration can also be removed.
    To make existing views compatible add the :slave_detail => true attribute to the grid attributes.
Commits on Nov 26, 2011
  1. Added vertical tab (\v) as one of the characters to escape for json (…

    davebaldwin committed Nov 26, 2011
    …causes sections of the gird to go blank when encountered).
Commits on Nov 18, 2011
  1. Removed unwanted theme and restored the default jquery-ui css file as…

    davebaldwin committed Nov 18, 2011
    … it was inadvertently deleted.
  2. Updated install task so for rails >= 3.1 the application.js file will…

    davebaldwin committed Nov 18, 2011
    … be updated if necessary to include jquery-ui as it is needed for the columnChooser option.
  3. Tidied up javascript loading helper to make it clearer what files nee…

    davebaldwin committed Nov 18, 2011
    …d to be loaded for rails < 3.1 and rails >= 3.1
Commits on Nov 11, 2011
  1. Added column chooser dialog to grid (set :column_chooser => true as a…

    davebaldwin committed Nov 11, 2011
    … grid option).
    Updated version of jquery to 1.7 and jquery-ui to 1.8.16.
Commits on Sep 28, 2011
Commits on Sep 23, 2011
  1. Updated the rake install task so it takes into account the rails vers…

    davebaldwin committed Sep 23, 2011
    …ion and if >=3.1.0 will use the new asset directory instead of public. It also selects between the source or minified version of jqgrid as rails 3.1.0 will automatically minify in production.
  2. Removed some debug code.

    davebaldwin committed Sep 23, 2011
Commits on Sep 22, 2011
  1. Generators updated to support RESTful and CRUD principals. Mainly inv…

    davebaldwin committed Sep 22, 2011
    …olves creating a controller for each detail grid rather than using the master grid controller to do the detail grid's work.
    The command line syntax has changed a little so a detail model name can also be passed in.  See generator file for comments and examples.
  2. Master-detail grids now follow RESTful and CRUD principals. (Note cha…

    davebaldwin committed Sep 22, 2011
    …nges in how detail grids are specified).
Commits on Sep 8, 2011
  1. Test Rails version so in >= 3.1.0 the source file for jqgrid will be …

    davebaldwin committed Sep 8, 2011
    …used and no the minified version as the new asset pipeline in 3.1.0 will do the minification for us in deployment (and makes debugging easier in development).
    jqgrid options are now merged recursively so the user can change one of the sub option hashes (such as :edit_optoins) without having to replace the whole option.
Commits on Sep 7, 2011
  1. Now is fully RESTful and CRUD aware.

    davebaldwin committed Sep 7, 2011
    (detail view not changed yet)
Commits on Sep 6, 2011
  1. Upgrade to jqgrid 4.1.2

    davebaldwin committed Sep 6, 2011
Commits on Jul 1, 2011
Commits on Jun 28, 2011
  1. Added helper function to support master-detail processing and filtering.

    davebaldwin committed Jun 28, 2011
    Changed filter_on_params to return JSON to refactor more common code out of the views.  Updated the generator to reflect this.
Commits on Jun 24, 2011
  1. Added support for multiple event handlers to hang off a single event,…

    davebaldwin committed Jun 24, 2011
    … so for example inline editing and master-detail views will work together, or master with multiple detail view can be used.
    Changed how master-detail views are defined.  The options hash key is now :master_details and the value for this key is either a hash (for a single detail) or an array of hashes (for multiple details).  A detail hash has the following keys:
       :grid_id		the id of the grid to use to display the detail view
       :url			the url string to a access the detail attributes
       :caption		caption string
Commits on Jun 22, 2011
  1. Move the two main methods to the top to be more visible and made them…

    davebaldwin committed Jun 22, 2011
    … public to emphasise their importance.
Commits on Jun 20, 2011
  1. Dates with a different format were not being edited correctly.

    davebaldwin committed Jun 20, 2011
    There are two problems - firstly rails doesn't seem to be honouring the Date::DATE_FORMATS[:default] when dates are being converted from strings during update_attributes so the conversion are done manually now.
    Secondly the Date to json conversion was also ignoring the default DATE_FORMATS setting so the to string conversions are done before the data is handed off as part of the render operation.
Commits on Jun 17, 2011
  1. Upgraded to jqgrid 4.1. This fixed a jqgrid bug introduced when movin…

    davebaldwin committed Jun 17, 2011
    …g from 3.8.2 to 4.0 where error messages reported from editing a row were failing to be displayed.
Commits on Jun 16, 2011
  1. The conversion of a string to the column type is now done using the m…

    davebaldwin committed Jun 16, 2011
    …odel's column definitions rather than inferring from the record as a record's attribute may be nil hence a valid type conversion couldn't be done so comparisons with other records will give spurious results.
Commits on Jun 14, 2011
  1. Removed protect_from_forgery line as this is done by default now, but…

    davebaldwin committed Jun 14, 2011
    … also excluding post_data doesn't seem necessary (at least no errors occur with it gone) so potentially strengthens security.