Fix grid.js for readonly

Small fix for readonly grid, i think editInForm should not affect the edit action, also because cell editing disabled before when prohibitUpdate.