PDA

View Full Version : Making a row non editable



mdrwxorg
22 Sep 2010, 4:48 AM
Hi folks,

I know how to make a column non editable with {editable: false}, but I can't find the way to do the same for a row.
I want to use it to block logged in users who don't have rights on a task to edit it. Does anybody know of any methods/properties that would help? Can records be set non editable on an individual basis?

Thanks
Marc

sideeque
22 Sep 2010, 6:37 AM
Disabling the fields on grid will be an one option.

laurentParis
22 Sep 2010, 7:11 AM
I suggest to add listeners beforeEdit on each editor and test record value that your need to test...
if it's ok to edit, return true; else return false;

mdrwxorg
22 Sep 2010, 12:32 PM
I like this idea. Thanks!


I suggest to add listeners beforeEdit on each editor and test record value that your need to test...
if it's ok to edit, return true; else return false;