Skip to content

Commit b4e960f

Browse files
committed
setModel to set edit mode
1 parent 495af14 commit b4e960f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/grid.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,12 @@ def set_colModels(self, result, meta_data):
404404
cols['align'] = self.__col_aligns[col_name]['align']
405405

406406

407-
if self.__edit_mode == 'CELL':
407+
if self.__edit_mode == 'CELL' or self.__edit_mode == 'INLINE':
408408
cols['editable'] = False if col_name in self.__col_readonly else True
409+
elif self.__edit_mode == 'FORM':
410+
cols['editable'] = True
411+
else:
412+
cols['editable'] = False
409413

410414
# --------------- editoptions ----------------
411415
# set default text input width, the default edit type is text

0 commit comments

Comments
 (0)