Created
October 27, 2010 08:02
-
-
Save webhoernchen/648647 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Netzke | |
class UserGrid < Basepack::GridPanel | |
def default_config | |
config = super | |
config.merge({ | |
:model => 'User', | |
:columns => [:first_name, :name, :email, :login, | |
{:name => :salutation, :editor => { :xtype => "combo", :store => [['mr', 'Herr'], ['mrs', 'Frau']] }}, | |
:title, :confirmed_at, :locked_at] | |
}) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may want to override GridPanel#default_fields_for_forms like this:
default_fields_for_forms may even return an arbitrary layout of fields that will be common for all forms that the grid uses.