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_Related Related Topics sp_TopicIcon
CellEdit Oddity
18/05/2011
18:32
Avatar
alphadog
New Member
Members
Forum Posts: 2
Member Since:
10/03/2008
sp_UserOfflineSmall Offline

I have a column defined as:

{ name: 'cnfamt', index: 'cnfamt', classes:'yellow', align: 'right', sorttype: 'currency',
                formatter: 'currency',
                formatoptions: { decimalSeparator: ".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "$"},
                editable: true,
                editoptions:{
                    beforeSubmitCell : function(rowid,celname,value,iRow,iCol) {
                        alert(rowid + '/' + celname + '/' + value + '/' + iRow + '/' + iCol);
                    }
                }
            }

What I want is that, before the cell value gets posted, I want to add a value into the posted data set. Currently it posts the column name, the value and the row id, but I need to add the record id, which is stored as a value in another column (hidden) of the same row.

So, I hang a fucntion off the beforeSubmitCell event, but it seems to fire at the wrong time. It fires when the cell gets into edit mode, not when the cell is edited by the user and the return key is then pressed. Also, all five parameters come in as undefined in the alert().

Comments?

18/05/2011
19:14
Avatar
alphadog
New Member
Members
Forum Posts: 2
Member Since:
10/03/2008
sp_UserOfflineSmall Offline

UPDATE: The early event triggering seems to happen in both IE8 and FF4. For some reasoin, although I was getting two alert notices in FF4, I cannot reproduce that behavior. Also, in both cases, seems like no params are being pased in.

PREVIOUS COMMENT WAS: Actually, to add: IE8 fires once when entering the cell, before the text gets converted to a textbox. In FF4, you get that incorrect behavior and also the apparently more timely post-edit. So, IE8 does it once at the wrong time, and FF4 does it twice, once wrong. (And, in all cases, all params like celname are undefined.)

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 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