Here is a javascript formatter I used when I tried this. I found the
solution hideously ugly and ended up going to a straight jQuery solution.

        function makeButton(clickAction, text) {
            return "<button onClick='" + clickAction + "'>" + text +
"</button>";
        }

Jason



On Tue, Oct 19, 2010 at 1:58 PM, Johannes Geppert <jo...@web.de> wrote:

>
> great!
>
> can you contribute the sources?
> if possible i add this to the wiki.
>
>
> Johannes
>
>
>
> cellterry wrote:
> >
> > Yes, it works!
> >
> >
> > Johannes Geppert wrote:
> >>
> >> Hi Terry,
> >>
> >> I think this is this is possible, but only with some handmake
> >> javascript. take a look at the custom formatters, I think this
> >> is the right way.
> >>
> >> http://code.google.com/p/struts2-jquery/wiki/FormatGrid
> >>
> >> Johannes
> >>
> >>
> >> cellterry wrote:
> >>>
> >>> Dear all,
> >>>
> >>> For Struts2 jQuery Plugin,
> >>>
> >>> could I add edit and delete buttons on each row of the table using sjg
> >>> tag?
> >>>
> >>> If not, how do I implement edit & delete functions using this grid?
> >>>
> >>> Terry.
> >>>
> >>>
> >>
> >>
> >
> >
>
>
> -----
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
> --
> View this message in context:
> http://old.nabble.com/Implement-Edit-and-Delete-functions-in-Struts-jQuery-Grid-tp29979285p30003344.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to