Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
replace loadui in inline edit
18/03/2009
15:08
Avatar
Schlawiener
Member
Members
Forum Posts: 8
Member Since:
18/03/2009
sp_UserOfflineSmall Offline

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?

19/03/2009
05:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

19/03/2009
10:09
Avatar
Schlawiener
Member
Members
Forum Posts: 8
Member Since:
18/03/2009
sp_UserOfflineSmall Offline

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

21/03/2009
11:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

26/03/2009
11:46
Avatar
Schlawiener
Member
Members
Forum Posts: 8
Member Since:
18/03/2009
sp_UserOfflineSmall Offline

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

30/03/2009
03:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information