Commits on May 6, 2011
  1. fix generator

    committed May 6, 2011
  2. Refactor generated controller code for #index and #post_data into jqg…

    …rid_index_for and jqgrid_post_data_for methods and include them in ActionController::Base
    committed May 6, 2011
Commits on May 5, 2011
Commits on May 3, 2011
  1. @davebaldwin

    Removed the sort option in post_data as it doesn't seem to be used an…

    …ywhere in this plugin or in jqgrid itself. This should be good for security as a user that is not allowed to edit the table (by entry or adding or deleting rows) should be able to sort the table. The whole post_data method can now be authorised with a before_filter so we will be immune from any malicious input even though the grid may have been set up to not allow editing.
    davebaldwin committed May 3, 2011
  2. @davebaldwin

    A row is reloaded after an edit instead of the whole grid. This is mu…

    …ch cleaner but also preserves the row as being selected.
    The controller generator has also been updated to support this as the row data is now returned along with the success or failure of the edit operation.
    The grid columns are now available as a constant in the controller so this has tidied up some of the Ruby code and made it more DRY.
    davebaldwin committed May 3, 2011
Commits on Apr 28, 2011
  1. @davebaldwin

    Changed to using a double click to start editing a row for inline edi…

    …ting. A single click will still select a row for other operations such as deleting it or for 'master detail' processing.
    davebaldwin committed Apr 28, 2011
Commits on Apr 26, 2011
  1. @davebaldwin

    After a successful inline the grid data is reloaded (I would prefer t…

    …o just update the row that has been edited. This allows any server side formatting or calculations resulting from the update to be seen in the client side data.
    davebaldwin committed Apr 26, 2011
  2. @davebaldwin

    Fixed bug where by the edit, add and delete options were not being re…

    …moved if the corresponding edit, add or delete were not enabled.
    Added grid resizing if the window size changes.
    davebaldwin committed Apr 26, 2011
Commits on Apr 21, 2011
  1. @davebaldwin

    Any option names that don't match the equivalent option name in jqGri…

    …d because of capitalisation or underscores have been change to be the same as jqGrid. This helps with documentation and also all the code to translate between names has gone.
    The search option how takes a hash so search related options can be passed in.
    edit_options, add_options and delete_options added and take hash to control behavoiur on edit, add and delete.
    Confusing edit options removed and combined into an :edit_method option that takes nil, false, :inline or :form to select if editing is to be allowed and if so how it is to be done.
    gen_columns and helper functions vastly simplified due to using native Ruby types and jqGrid names (:field has been changed to :name).
    Sub grid support has been temporarily removed until it can be tidied up and I have a test case for it.
    davebaldwin committed Apr 21, 2011
Commits on Apr 6, 2011
  1. @davebaldwin

    Changed error handler so for a user defined error handler only the fu…

    …nction name is passed in the :error_handler option. The code for the user error handler will be provided elsewhere in the view outside of the jqGrid.
    davebaldwin committed Apr 6, 2011
Commits on Apr 5, 2011
  1. @davebaldwin
  2. @davebaldwin
  3. @davebaldwin

    Converted attributes to use native Ruby types and it make testing the…

    … attributes easier. They are converted into strings automatically when used in interpolated strings so passing them in as strings or manually converting them to strings is unnecessary.
    Changed how the error handler is passed in to reduce the number of option fields needed.  Use :error_handler => :default to get the default handler, nil to get no handler (actually you do get a handler but it does nothing) or the js handler you want by passing it in as a string.
    Factored the error handler code into its own method.
    Allow app wide jqgrid options.
    davebaldwin committed Apr 5, 2011
Commits on Apr 1, 2011
  1. @davebaldwin

    Fixed using an error handler so the error message is now displayed an…

    …d the original data restored to the grid.
    davebaldwin committed Apr 1, 2011
Commits on Feb 10, 2011
  1. @springbok

    Cache javascript files. Add column 'dataInit' option to specify JS co…

    …de, for example adding a date picker
    springbok committed Feb 10, 2011
Commits on Jan 6, 2011
  1. @springbok

    Add loadui option

    springbok committed Jan 6, 2011
Commits on Jan 4, 2011
  1. @springbok
  2. @springbok
Commits on Dec 31, 2010
  1. @springbok

    Recreate the edit & add dialogs by default. To cache the dialogs set …

    …:recreateForm to true
    springbok committed Dec 31, 2010
Commits on Dec 24, 2010
  1. @springbok

    Add ability to use default error handler, no error handler or a custo…

    …m handler defined external to the plugin. Use :custom_error_handler => HandlerFunctionName to specify a custom handler.
    springbok committed Dec 24, 2010
Commits on Dec 23, 2010
  1. @springbok
  2. @springbok

    Add comments for options

    springbok committed Dec 23, 2010
Commits on Dec 16, 2010
  1. @springbok

    Fix contextmenu call

    springbok committed Dec 16, 2010
Commits on Dec 15, 2010
  1. @springbok
  2. @springbok
  3. @springbok

    Add context menu

    springbok committed Dec 15, 2010
  4. @springbok

    Add context menu support

    springbok committed Dec 15, 2010
Commits on Dec 3, 2010
  1. @springbok

    Add shrinkToFit option, add form_width option to allow edit/add form …

    …width to be set(default = 300)
    springbok committed Dec 3, 2010
Commits on Dec 2, 2010
  1. @springbok

    Close form after add

    springbok committed Dec 2, 2010
  2. @springbok

    Fix problem with records that contain data with a single quote, previ…

    …ously this would prevent records from being displayed as the escape_javascript created invalid json by escaping the single quote
    springbok committed Dec 2, 2010
  3. @springbok
Commits on Dec 1, 2010
  1. @springbok

    Add formatoptions

    springbok committed Dec 1, 2010
Commits on Nov 30, 2010
  1. @springbok

    Make viewrecords an option

    springbok committed Nov 30, 2010
Commits on Nov 9, 2010
  1. @doabit
  2. @doabit

    Add return error for default

    doabit committed Nov 9, 2010