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
rowLock using beforeEditCell is losing initial value
15/09/2009
18:56
Avatar
Alex
Guest
Guests

Hi,

I am using the following function to lock a row as disabled:

   beforeEditCell: function (rowid,name,val,iRow,iCol){
                   if (rowid == 100000){
                   jQuery("#jqg_"+id,"#list").attr('editable',false);}},

Which works fine on the first click of the rows' cell, but on second click it changes my initial value of "220.3" to 0.

How can I prevent jqGrid from changing the value?

Please and Thanks,

Alex

15/09/2009
20:45
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

I don't understand what you'd like doing. What does locking  a row mean. You can disable controls in the row not the row, and we don't have editable as html element attribution. If you don't want the row being edited jsut return false in RowEdit event when your criteria is true.

15/09/2009
21:54
Avatar
Alex
Guest
Guests

RowEdit works just the same. I am using:

   cellEdit:true,
   cellsubmit:'remote',
   cellurl: 'data-handler',
   treeGrid: true,

etc....

and making select rows un-editable (the parents in a treegrid).

It works perfectly already; makes the row readonly BUT for some reason it changes my value to 0.00 upon clicking the same cell twice.

I think it's because I am using "beforeEditCell" as an event, instead on "onSelectRow", but I can't use "onSelectRow" when cellEdit = true.

Makes sense ?

Thanks,

Alex

16/09/2009
19:48
Avatar
Alex
Guest
Guests

solved.

used beforeSelectRow event.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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