Categories | Question details Back To List | ||
It's not obvious how I write back changes to the
server. How does this work? (We are running Ruby on Rails ... It's not obvious how I write back changes to the server. How does this work? (We are running Ruby on Rails on our server, not PHP) Answer posted on Mar 14, 2007 14:56 dhtmlxGrid has two ways of saving data: a) By using dataProcessor library, this way for each action in tree (adding/deleting/editing) related event handler generates AJAX call to server side. The guide describes which vars are sent to server for each type of call. You only need to implement the correct DB updates for specified AJAX calls. samples/savedata_grid.html In case of
Rails framework adapting dataprocessor can be a complex task, because naming
convention used for data saving is working with common kinds of URLs. Attached
file demonstrates custom server side code, it is still PHP - but it has a lot
of comments. We have an experimental version of third solution - form integration, grid integrates in surrounding <form> tag and include all ( changed ) values in form scope on submit Answer posted by Stanislav (Support) on Dec 02, 2014 09:48 Having solved the problem mentioned above, you may also look through the possible related problems with event agenda template and dhtml table. |