Skip to content

Commit

Permalink
setModel to set edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
phpcontrols committed Sep 13, 2023
1 parent 495af14 commit b4e960f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,12 @@ def set_colModels(self, result, meta_data):
cols['align'] = self.__col_aligns[col_name]['align']


if self.__edit_mode == 'CELL':
if self.__edit_mode == 'CELL' or self.__edit_mode == 'INLINE':
cols['editable'] = False if col_name in self.__col_readonly else True
elif self.__edit_mode == 'FORM':
cols['editable'] = True
else:
cols['editable'] = False

# --------------- editoptions ----------------
# set default text input width, the default edit type is text
Expand Down

0 comments on commit b4e960f

Please sign in to comment.