Forum


15:08

18/03/2009

Hi,
how can I replace the default loadui with a custom made in the inline edit mode?
If I set loadui to disable and change the beforeRequest and loadComplete to functioncalls, this works, bur only if I sort the columns or use the pager.
If I edit and submit a cell the default loadui is shown (like loadui="enable").
Is this possible?
05:34

Moderators
30/10/2007

Hello,
Use the appropriate events in cell editing module e.g beforeEdit afterSubmit (if I remember right the names)
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
10:09

18/03/2009

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
11:29

Moderators
30/10/2007

Hello,
Sorry it is my fault thinking that this is celledit.
Use oneditfunc and aftersavefunc
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
11:46

18/03/2009

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
03:02

Moderators
30/10/2007

Hello,
You are right. Thanks. Will correct this.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
50 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66