On Miércoles, 25 de Noviembre de 2009 16:17:08 Mat escribió:
> Thanks Volker, that was helpful. I spent yesterday afternoon patching
> inplace_edit to support :select as well as :usa_states and found the
> secret hidden javascript code in the column headers. I'll submit a
> patch once I've got some tests and peer reviews done.

Form_ui :select and :usa_states are working here both with inplace_edit true 
and :ajax. All you need is to set the form_ui and inplace_edit attributes:
config.columns[:state].form_ui = :usa_state
config.columns[:state].inplace_edit = true

>
> Cheers
>
> M.
>
> On Nov 24, 3:32 pm, "[email protected]"
>
> <[email protected]> wrote:
> > Hi,
> >
> > There are two different flavours of inplace_edit.
> >
> > inplace_edit = :ajax
> > When clicking inplace edit link server is asked to send corresponding
> > input form. Might be used for Recordselect, Multiselect, dynamic
> > data, ...
> >
> > inplace_edit = true
> > When clicking inplace edit link input form will be copied from a
> > hidden template without server interaction. Might be used for boolean,
> > static select, calendar_date_select,....
> >
> > You just have to pick the right strategy for your specific
> > attribute. :-)
> > number should be inplace_edit = true
> > select might be both:
> > lookup tables, static selects => true
> > dynamic select options => ajax
> >
> > --
> > Volker
> >
> > On Nov 24, 10:00 pm, Mat <[email protected]> wrote:
> > > The API docs say this about inplace_edit:
> > > > Since v2.3:
> > > >
> > > > For columns with form_ui or form override, it will copy the fields
> > > > from a hidden template in the column header instead of use the
> > > > default InPlaceEditor.
> > > >
> > > > If inplace_edit is set to :ajax, an AJAX request will be made to get
> > > > the field, that option is needed for in place editing with
> > > > RecordSelect.
> > >
> > > What is the 'hidden template in the column header' and how do I access
> > > it? What does "an AJAX request will be made to get the field, that
> > > option is needed for in place editing with RecordSelect" mean?
> > >
> > > I'm trying to add support for inplace editing for :select and currency
> > > fields but having some trouble figuring out what's already here. Any
> > > pointers would be appreciated.
> > >
> > > Thanks
> > >
> > > M.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send
> email to [email protected]. To unsubscribe from this group,
> send email to [email protected]. For more
> options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--

You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.


Reply via email to