Context Menu not appearing on right click after editing combocell

Posted by: steven.wood on 22 August 2019, 5:24 am EST

    • Post Options:
    • Link

    Posted 22 August 2019, 5:24 am EST

    I have a spreadsheet containing combo cells. If I right click on the cell the context menu appears, however, if I left click on the cell, make a selection and then closeup the combo, right clicking on the cell has no effect. Is there a way to resolve this issue?

  • Posted 22 August 2019, 3:03 pm EST

    Hi,

    I’m assuming you’re referring to Spread .NET control. Can you please confirm that after making a selection and then closing the combo box the cell’s contents are not selected. If the cell’s contents are still selected (highlighted) then the cell’s editor is still active so the context menu defined on Spread won’t appear (which is normal; only the active control can show its context menu).

    If this is not the case, then please mention your Spread version so we can check it against that also.

    Regards,

    Jitender

  • Posted 22 August 2019, 9:12 pm EST

    I am using Spread.NET. I had not appreciated that the cell was still in edit mode.

    Thanks

  • Posted 25 August 2019, 5:43 pm EST

    Hi,

    If you want the context menu to appear after selecting one of the items from the combo box dropdown, then you can explicitly exit out of the edit mode in the handler for ComboCloseUp event:

    private void FpSpread1_ComboCloseUp(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
    {
        fpSpread1.EditMode = false;
    }
    
    

    Regards,

    Jitender

Need extra support?

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

Learn More

Forum Channels