Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Dec 27, 2011
  1. @davebaldwin
  2. @davebaldwin

    Extended the readme to include many of the new features added since t…

    davebaldwin authored
    …he original fork. Switched over to using markdown as the mark up language.
Commits on Dec 20, 2011
  1. @davebaldwin

    The caption displayed in slave detail grids can now use arbitrary val…

    davebaldwin authored
    …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. @davebaldwin

    Removed the need for slave grids to be identified as such using a use…

    davebaldwin authored
    …r supplied option. This is now handled automatically.
Commits on Dec 18, 2011
  1. @davebaldwin

    The injection of additional pos tdata (to support passing in the grid…

    davebaldwin authored
    … 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. @davebaldwin

    Deprecated using the grid_columns to drive the searching and filterin…

    davebaldwin authored
    …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. @davebaldwin

    Reloading of the master grid will cause all slave grids to be reset s…

    davebaldwin authored
    …o they no longer show data as no row is now selected in the master grid.
  2. @davebaldwin

    Internal paginate method was missing the first page of records becaus…

    davebaldwin authored
    …e the current_page starts from 1 and not 0 as assumed by the method.
Commits on Dec 5, 2011
  1. @davebaldwin

    Added detail_foreign_key option to master_details to allow the attrib…

    davebaldwin authored
    …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. @davebaldwin

    Remove the need for a controller to know about the grid columns being…

    davebaldwin authored
    … 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
        views.
    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. @davebaldwin

    Added vertical tab (\v) as one of the characters to escape for json (…

    davebaldwin authored
    …causes sections of the gird to go blank when encountered).
Commits on Nov 18, 2011
  1. @davebaldwin

    Removed unwanted theme and restored the default jquery-ui css file as…

    davebaldwin authored
    … it was inadvertently deleted.
  2. @davebaldwin

    Updated install task so for rails >= 3.1 the application.js file will…

    davebaldwin authored
    … be updated if necessary to include jquery-ui as it is needed for the columnChooser option.
  3. @davebaldwin

    Tidied up javascript loading helper to make it clearer what files nee…

    davebaldwin authored
    …d to be loaded for rails < 3.1 and rails >= 3.1
Commits on Nov 11, 2011
  1. @davebaldwin

    Added column chooser dialog to grid (set :column_chooser => true as a…

    davebaldwin authored
    … grid option).
    
    Updated version of jquery to 1.7 and jquery-ui to 1.8.16.
Commits on Sep 28, 2011
  1. @davebaldwin
Commits on Sep 23, 2011
  1. @davebaldwin

    Updated the rake install task so it takes into account the rails vers…

    davebaldwin authored
    …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. @davebaldwin

    Removed some debug code.

    davebaldwin authored
Commits on Sep 22, 2011
  1. @davebaldwin

    Generators updated to support RESTful and CRUD principals. Mainly inv…

    davebaldwin authored
    …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. @davebaldwin

    Master-detail grids now follow RESTful and CRUD principals. (Note cha…

    davebaldwin authored
    …nges in how detail grids are specified).
Commits on Sep 8, 2011
  1. @davebaldwin

    Test Rails version so in >= 3.1.0 the source file for jqgrid will be …

    davebaldwin authored
    …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. @davebaldwin

    Now is fully RESTful and CRUD aware.

    davebaldwin authored
    (detail view not changed yet)
Commits on Sep 6, 2011
  1. @davebaldwin

    Upgrade to jqgrid 4.1.2

    davebaldwin authored
Commits on Jul 1, 2011
  1. @davebaldwin
  2. @davebaldwin
Commits on Jun 28, 2011
  1. @davebaldwin

    Added helper function to support master-detail processing and filtering.

    davebaldwin authored
    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. @davebaldwin

    Added support for multiple event handlers to hang off a single event,…

    davebaldwin authored
    … 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. @davebaldwin
  2. @davebaldwin

    Move the two main methods to the top to be more visible and made them…

    davebaldwin authored
    … public to emphasise their importance.
Commits on Jun 20, 2011
  1. @davebaldwin
  2. @davebaldwin

    Dates with a different format were not being edited correctly.

    davebaldwin authored
    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.
  3. @davebaldwin
Commits on Jun 17, 2011
  1. @davebaldwin

    Upgraded to jqgrid 4.1. This fixed a jqgrid bug introduced when movin…

    davebaldwin authored
    …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. @davebaldwin

    The conversion of a string to the column type is now done using the m…

    davebaldwin authored
    …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. @davebaldwin

    Removed protect_from_forgery line as this is done by default now, but…

    davebaldwin authored
    … also excluding post_data doesn't seem necessary (at least no errors occur with it gone) so potentially strengthens security.
Something went wrong with that request. Please try again.