Skip to content

Feature Request - callback function before ajax update #8

@GoogleCodeExporter

Description

@GoogleCodeExporter
I am setting the sURL property to make a server call when the rows are 
reordered.  This is working as expected.  However, my requirements demand that 
all ajax calls contain a security token.  Would it be possible to add a 
callback function that executes immediately before the ajax call?  Ideally, the 
args for this function would be the json object:
{ id: ui.item.context.id,
  fromPosition: oState.iCurrentPosition,
  toPosition: oState.iNewPosition,
  direction: oState.sDirection,
  group: sGroup
}
currently used by the ajax call, so I could append my security token to it.

I could understand that you may not want to expose this data, so another option 
could be to pass the callback function an empty json object (or maybe it could 
at least contain the row Id) to be manipulated, then you could add the 
to/fromPosition and other data after the callback executes.

Thanks

Original issue reported on code.google.com by eng...@gmail.com on 2 Aug 2012 at 3:59

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions