Custom Form for Grid

38 views
Skip to first unread message

Jorge Segura

unread,
Oct 10, 2013, 11:51:59 AM10/10/13
to net...@googlegroups.com
Hi everybody.

There is a way to set up a custom form for a Grid when defining a component?
like this?

    component :vans do |c|
        #this is a Netzke:Basepack::Grid
        c.klass = Vehicles::Vehicle
        c.title = "Vans"

        #this line does not work
        c.form_config.klass = Vehicles::VanForm
    end

I know that this is the standard way:

    def preconfigure_record_window(c)
        super       
        c.form_config.klass = Vehicles::VanForm
    end

Best regards!
Reply all
Reply to author
Forward
0 new messages