Posted 11 June 2020, 6:41 am EST
I am using custom shorcut keys to perform flexgrid actions like save and delete.
For save we use custom key and trigger save button action on pressing custom key.
I am facing an issue when our focus is on flexgrid cell like date or dropdown cell type.
Issue is that while pressing shortcut keys my save button action is not trigger on first time our flexgrid cells get edit mode and for triggering save button we need to to press our custom key and again and then save button action call.
I am using this.
componentObject.grid.finishEditing();
componentObject.grid.collectionView.commitEdit();
setTimeout(function(){
componentObject.submitBtn.trigger(‘click’);
},100);
but not worked.
I am also trying this
componentObject.grid.select(-1);
and
componentObject.grid.moveCurrentToPosition(-1);
but not worked properly.
I want to prevent to gone in edit mode and triggering our action .
Regards
Deepak Dubey