[Seaside] Re: JQGrid Events

Chris cpmbailey at btinternet.com
Fri Sep 14 14:51:53 UTC 2012


And then if memory serves you would call it with something like html 
jQuery this grid onCellSelect: (html jQuery ajax callback: [:val | rowId 
= val ] value: (JSStream on: 'rowId'); callback: [:val | iCol = val ] 
value: (JSStream on: 'iCol')); etc
> Hi -
>
> 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:
> #onCellSelect:
> self optionAt:'onCellSelect' put: (aCallback asFunction: #('rowId' 
> 'iCol' 'cellcontent' 'e'))
>
>
>
>
> Let me know if thats not what you had in mind.
>
>
> Good luck
>
> Paul
>
>
>
>
>
> On 09/14/2012 07:04 AM, Sabine Knöfel wrote:
>> Hi,
>>
>> I put my model objects in a JQGrid.
>> I want to add the onCellSelect: callback
>> (>>http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events).
>>
>> 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
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



More information about the seaside mailing list