[Seaside] Re: JQGrid Events
pdebruic at gmail.com
Fri Sep 14 14:36:40 UTC 2012
I did something like that in the FullCalendar-Dev-Example package in
JQueryWidgetBox repo on squeaksource. See the send of #onEventClick: in
JQFullCalendarExampleCalendar>>#renderCalendar: . Also the
implementation of JQFullCalendar>>#onEventClick: may help.
It opens a JQDialog and loads content about that calendar event from
Pharo into the dialog on the client.
In your case you probably want:
self optionAt:'onCellSelect' put: (aCallback asFunction: #('rowId'
'iCol' 'cellcontent' 'e'))
Let me know if thats not what you had in mind.
On 09/14/2012 07:04 AM, Sabine Knöfel wrote:
> I put my model objects in a JQGrid.
> I want to add the onCellSelect: callback
> I added:
> /JQGrid>>onCellSelect: aFunction
> self optionAt: 'onCellSelect' put: aFunction/
> now, with:
> /(html jQuery this grid
> gridComplete: 'alert(''Bing'')' asFunction;.../
> I get an alert when clicking at the cell.
> But I dont know how to get the selected model instance within smalltalk (for
> further editing).
> Can anyone help?
> View this message in context: http://forum.world.st/JQGrid-Events-tp3787423p4647456.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside