Forum


04:47

Moderators
30/10/2007

Hello,
Do not understand. How you can disable cell edit with setCell? I think this is not possible.
Please, describe clear what you try to do and posting code is recommended.
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.
18:26

19/08/2009

Hi,
I'm trying to do something similar. Basically 2 cells are dependant on each other, and when the value of cell 1 is changed to false, then cell 2 should be non editable (not the whole column, but just the cell in the same row), and if the value is changed back to true, cell2 should be editable again.
Another example would be cascading drop downs - if I change value of dropdown1, and it turns out that there are no corresponding values for dropdown2, then the dropdown2 cell should be non editable and it's value should be reset to an empty string.
Is this possible to achieve?
Regards,
Jo
04:07

Moderators
30/10/2007

Hello,
1. After saving the cell1 do setColProp to disable/enable editing in cell2
2. use dataEvents in editoptions to do this. - see docs
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.
23:05

Moderators
30/10/2007

Hello,
Currently is no ready for you way to do this, but this point me to include some condition to do this - by example if the cell has a class disable-edit it will be not editable.
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:30

Moderators
30/10/2007

Hello,
Yes it will be in 3.6 - not only for cellEdit, but for inline edit (row lock)
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.
13:22

Hi Tony,
I tried adding "disable-edit" in v36 and it doesn't seem to be included ?
or am I implementing it wrong ? I have "disable-edit" added as a class, but it's still editiable....
http://www.blackstag.com/jqGri.....6-example1
Thanks,
tim
09:38

19/10/2009

jpalac said:
Hi,
I'm trying to do something similar. Basically 2 cells are dependant on each other, and when the value of cell 1 is changed to false, then cell 2 should be non editable (not the whole column, but just the cell in the same row), and if the value is changed back to true, cell2 should be editable again.
Another example would be cascading drop downs – if I change value of dropdown1, and it turns out that there are no corresponding values for dropdown2, then the dropdown2 cell should be non editable and it's value should be reset to an empty string.
Is this possible to achieve?
Regards,
Jo
If you're using cellEdit: true, why don't you implement this behavioral logic in the afterEditCell event?
Something along the lines of:
gridSelector = $(“#” + this.id);
if (myCondition) {
gridSelector.restoreCell(iRow, iCol);
}
}
Just a suggestion.
Have a nice day
Ben
05:15

Moderators
30/10/2007

Hello,
The class was changed in development phase. The class tha can be used is:
1. for cell editing - "not-editable-cell"
2. for inline edit - "not-editable-row"
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:
72 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