Hi,
I think the cleanest way would be:
The serversidescript what send the data check the user session, and if the session is invalid, send a 403 forbidden header.
Place your own function for loadError and there you check for the 403 status. If this is the case you could display a error message or soemthing else.
Put the pager-HTML before the table
e.g.
And remember to set the pager in the config e.g.
pager: jQuery('#pager'),
Regards
tony said:
Sorry it is my fault thinking that this is celledit.
Use oneditfunc and aftersavefunc
Hi,
no problem.
But I think this is at the moment not possible:
in grid.inlineedit.js there is a direct call to display the default loadui (line 129: $(”div.loading”,$t.grid.hDiv).fadeIn(”fast”);) and after the ajax call to hide the loadui (line 170: (”div.loading”,$t.grid.hDiv).fadeOut(”fast”);)
Can anyone verify this?
The loadui replacement for pager is done in grid.base.js there the loadui is replaced depending on the configuration in the beginReq-function (line 942).
There is the call for beforeRequest (I was also looking for inlineedit) and displaying the loadui based on configuration
Probably this is some kind of feature request? But nothing urgent, it would only be nicer if you could replace the loadui everywhere via the configuration.
Regards
Hi,
I think these functions will only affect in the cell edit form, not in inline edit mode.
I also set the loadui to 'block', but the loadui is the default one.
I tried to create the functions:
beforeEditCell: function(id,name,v,iRow,iCol){console.log('beforeditcell');},
afterEditCell: function(id,name,v,iRow,iCol){console.log('aftereditcell');},
afterSaveCell:function(id,name,v,iRow,iCol{console.log('aftersavecell');},
afterSubmitCell:function(result,postdata,nm,v,iRow,iCol){console.log('aftersubmitcell');},
beforeSubmitCell: function(id,name,v,iRow,iCol){console.log('beforesubmitcell');return{};},
only to see if they are called, and there was no output in the console
Thanks for reply.
I also use the search (constructed in the toolbar) and if I submit these chars they are posted without such a transformation.
They are converted in the hex-values e.g. & will be %26
I think this would also be the correct transformation for submitting cell values.
Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top