Javascript on grid

オフライン

How can i block/disable userstatus when VFI from a grid is either being created or edited and where should i run the method? by lock i mean uneditable or the user should not be able to edit.