MY.TableGrid.SAVE_BTN

60 views
Skip to first unread message

Sergio Saray

unread,
Jul 23, 2012, 9:55:58 AM7/23/12
to mytab...@googlegroups.com
First of all I thank you for this great tool and by the time you used to develop it.

I'm not very experienced developer and I can not make the SAVE button. send data from the combo box and switches to my database.

I would appreciate if you could shed some light on how to do this or where in the source code.  

Thanks again.  

Pablo Aravena

unread,
Jul 24, 2012, 5:16:07 PM7/24/12
to mytab...@googlegroups.com
Hi Sergio

I think for doing the save operation you can follow the sample described here:

http://pabloaravena.info/mytablegrid/samples/tablegrid/sample_cars1.php

The idea is that the onSave handler send an asyncronous request to the
server, where the save operation is performed, then when you receive
the response from server you can do a refresh of the table grid. For
doing all this you need to use Ajax.Request (review this link:
http://api.prototypejs.org/ajax/Ajax/Request/), The data you need to
transfer are the modified rows, so you need to use method
getModifiedRows and finally the refresh method which allows you to
refresh the table grid.

Hope it helps

Regards
Pablo
> --
> You received this message because you are subscribed to the Google Groups
> "MyTableGrid" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mytablegrid/-/IoAPIjlNwIMJ.
> To post to this group, send email to mytab...@googlegroups.com.
> To unsubscribe from this group, send email to
> mytablegrid...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mytablegrid?hl=en.
Reply all
Reply to author
Forward
0 new messages