[Seaside] Re: JQGrid update grid or single row

Sabine Knöfel sabine.knoefel at gmail.com
Tue Sep 18 14:36:57 UTC 2012


Hi John,

ups - so easy :-). Thank you, this is a sufficient solution for me.

Sabine

On Tue, Sep 18, 2012 at 3:49 PM, John McKeon [via Smalltalk] <
ml-node+s1294792n4647978h13 at n4.nabble.com> wrote:

> Hi Sabine,
> You can send more than one onClick: (). They execute in the order they are
> defined so you would move the onFocus: code before the existing onClick:
>
> html button
>    onClick: (html prototype evaluator...);
>    onClick: (JSStream on...);
>    with: &etc.
>
> Regarding the trigger script Johan suggested, maybe you need to add the
> additional argument using with: with: or one of it variants. It will
> probably look complex as you need an array of JSon objects but it would
> allow you to determine the page dynamically?
>
> Hope this helps
>
> John
> On Tue, Sep 18, 2012 at 8:18 AM, Sabine Knöfel <[hidden email]<http://user/SendEmail.jtp?type=node&node=4647978&i=0>
> > wrote:
>
>> Sorry, I did not succeed with your code.
>> I suceeded in using the code below.
>>
>> Now I have the problem, that with one click at the button, I want to do 2
>> things:
>> 1) do some saving of my data (prototype)
>> 2) update the grid (jQuery)
>> Normally both should be done within the onClick: event.
>> But I can do only one thing within the onClick, so I encroached the
>> onFocus: event.
>>
>> I dont like this.
>>
>> Anyone having a better way for this?
>> Sabine
>> -------------------------------------------------------------------------
>> html button
>>         *onClick*: (JSStream on:
>> 'jQuery("#gridID").trigger("reloadGrid",[{page:1}]);');
>>         *onFocus*:
>>                 (html prototype evaluator
>>                         callback: [ :script |
>>                                     self save.....
>>                                     self update....
>>                                      ];
>>                         return: false);
>>         disabled: self isSaveButtonEnabled not;
>>         script: (html jQuery this button primaryIcon: self iconSave);
>>        with: 'save and update'.
>>
>>  On Sat, Sep 15, 2012 at 4:41 PM, Paul DeBruicker [via Smalltalk] <[hidden
>> email] <http://user/SendEmail.jtp?type=node&node=4647951&i=0>> wrote:
>>
>>>  Looks like this might work:
>>>
>>> (html jQuery id: 'myJQGrid') call:'trigger' with:'reloadGrid'.
>>>
>>>
>>>
>>>
>>>
>>> On 09/15/2012 05:23 AM, Sabine Knöfel wrote:
>>>
>>> > Hi,
>>> >
>>> > I use JQWidgetBox and want to update the grid with data (which has
>>> changed
>>> > outside).
>>> > How can I force the whole Grid to update?
>>> > How can I reload only one row?
>>> >
>>> > It is something with
>>> > http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3Amethods
>>> > trigger("reloadGrid")
>>>
>>> >
>>> > but I have no idea how to call this from smalltalk.
>>> > Sabine
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572.html
>>> > Sent from the Seaside General mailing list archive at Nabble.com.
>>> > _______________________________________________
>>> > seaside mailing list
>>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4647576&i=0>
>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>> >
>>>
>>> _______________________________________________
>>> seaside mailing list
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4647576&i=1>
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>>
>>> ------------------------------
>>>  If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647576.html
>>> To unsubscribe from JQGrid update grid or single row, click here.
>>> NAML<http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>> ------------------------------
>> View this message in context: Re: JQGrid update grid or single row<http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647951.html>
>>
>> Sent from the Seaside General mailing list archive<http://forum.world.st/Seaside-General-f86180.html>at Nabble.com.
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4647978&i=1>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
> --
> jmck.seasidehosting.st
>
>
> _______________________________________________
> seaside mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4647978&i=2>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647978.html
>  To unsubscribe from JQGrid update grid or single row, click here<http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4647572&code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ2NDc1NzJ8MTA0OTM5MTYx>
> .
> NAML<http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://forum.world.st/JQGrid-update-grid-or-single-row-tp4647572p4647983.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120918/54489b39/attachment-0001.htm


More information about the seaside mailing list