I have a jqgrid that displays the job details of auto repairs. Right now, I
have the grid reloading using the following script and I need to change it so
that it refreshes the entire page so that the subtotal and total fields (that
sit outside of the grid) update. Here is my relevant code, any help would be
greatly appreciated:
var editOptions = {
keys: true,
successfunc: function () {
var $self = $(this);
setTimeout(function () {
$self.trigger("reloadGrid");
}, 50);
}
};
$grid.jqGrid('navGrid', '#pager', {add: false, edit: false, del:
true,
search:false},{reloadAfterSubmit:true,afterSubmit:commonSubmit,closeAfterEdit:true,width:"400"},{reloadAfterSubmit:true,afterSubmit:commonSubmit,closeAfterAdd:false,width:"400"},{url:"editGrid.cfc?method=delUser",closeAfterDelete:true,reloadAftersubmit:false,afterSubmit:commonSubmit,caption:"Delete",msg:"Delete
selected",width:"400"});
$grid.jqGrid('inlineNav', '#pager',
{addParams:{position:"last",addRowParams:editOptions},editRowParams:editOptions});
});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359519
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm