Cell focus Not changed at single time

Posted by: deepak.dubey on 11 June 2020, 6:41 am EST

  • 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

  • Posted 12 June 2020, 1:09 am EST

    Hi Deepak,

    Have you added custom editors to the grid? As you said that the issue occurs for date type and drop-down cells. Drop-down cells can be created using DataMap and custom editors both. Can you please confirm this?

    Also, can you provide the exact steps of replicating the issue? You must be using the same procedure for saving the grid as in the post below:

    https://www.grapecity.com/forums/wijmo/commit-flexgrid-data-witho

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels