[Seaside] JQGrid Events
Robert Sirois
watchlala at hotmail.com
Fri Sep 9 15:34:02 UTC 2011
Thanks Milan. I don't completely understand the javascript patterns... or javascript for that matter ;)
What I ended up doing is this:
data do: [:t | html document addLoadScript: ((html jQuery: t title asSymbol) live: 'click' do: ((html jQuery ajax callback: [ ... ]) onComplete: html javascript refresh)). ].
It's a little ridiculous, but oh well. I'm going to try and figure out the tree addon at some point.
Thanks,RS
> Date: Wed, 7 Sep 2011 22:09:54 +0200
> Subject: Re: [Seaside] JQGrid Events
> From: milan.mimica at gmail.com
> To: seaside at lists.squeakfoundation.org
>
> You have to expand the Smalltalk side of JQgrid with events you want
> to use. It's not much work.
> For example, I have added this to JQgrid class for 'gridComplete' event:
> gridComplete: aFunction
> self optionAt: 'gridComplete' put: aFunction
>
> Then you call:
> html table
> script: ((html jQuery this grid)
> ...
> gridComplete: 'var blah; ... ' asFunction;
> ...
> ).
>
>
> On 3 September 2011 05:11, Robert Sirois <watchlala at hotmail.com> wrote:
> > How do I add an event to my grid?
> > There's a list
> > here: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events.
> > There doesn't seem to be an easy way to associate a callback with a cell /
> > row like WATableReport.
> > RS
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
>
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110909/10706b6f/attachment.htm
More information about the seaside
mailing list