when saving editable grid following code is called from atk/datagrid/class.atkdatagrid.inc
Code:
:
/**
* Returns a JavaScript call to save the current grid's contents when in edit mode.
*
* @return string JavaScript call (might need escaping when used in HTML code)
*/
public function getSaveCall()
{
$url = session_url(dispatch_url($this->getNode()->atkNodeType(), 'multiupdate', array('output' => 'json')), SESSION_PARTIAL);
atkimport('atk.utils.atkjson');
return 'ATK.DataGrid.save('.atkJSON::encode($this->getName()).', '.atkJSON::encode($url).');';
}
:
SESSION_PARTIAL : this is PARTIAL ajax call .... but i wish to refresh the full page ... how to do it any idea?
reason : action_multiupdate() mentioned above works fine and i get control of each row and and i myself save it using updateDb() ..... also i update parent node table for totals etc.... it is updated properly in database but since while page is not refreshed --- users do not see the effect.