hi guys,
after trying around 2 days without a good solution i could need your help 🙂
first of all what we want to do is a whole hook / wrapper for all jqgrid ajax calls.
the target is that our server can always answer with a json response looking like this:
ack: success / fail
timestamp: 1111111111111111
error: errorObj{errorCode:123, errorMsg:abc}
jqgrid_payload: {the realdata for our jqgrid , also jqgrid json error data, etc.}
action: actionObj{}
our hook code would parse this, take care of all additional data and forward only the payload data to our jqgrids.
this solution is needed as a central point of application control.
for example if a user session expires we want to redirect the user to the login screen. this could be done by a special errorCode.
if the user change some data we want to be able to switch off the editing on special fields (controlled by the server).
also we need to trigger other UI Componets depending on changes that the jqGrid send to the server and the server decide what should happen.
i started to play around with datatype: function ()…. and this gets near a solution but like i saw this is only triggern on reload/fetch calls, for validation or editing other ajax calls are used…
all onComplete events dont work because they are triggered additionaly to the normal ajax flow.
really dont remember all my trys but i had alot 🙁
also it would be a solution for us if we get a list of hook points where we could write our own ajax calls, always use the central responseParsing function and forward the payload data to our jqgrid…
hope someone has a solution for this. thx!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top