Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Copy/Paste Context Menu for Cells With Value List
posted

I seem to be having an issue with getting the context menu to appear in columns/cells where a value list exists. If the cell/column doesn't have a value list, then I get the default context menu as expected when I right click into the cell (see below); this menu doesn't appear for columns with value lists (i.e., column to the right in the image below).

Anyone have any ideas as to why I'd be getting this different behaviour? I've read some other posts and have looked at things like Activation and CellActivation and both columns have the same properties (ActivateOnly). This is a "read-only" grid so don't want to change activation property to anything that may give the user the false impression that they can change the data.

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    The context menu you are showing here is not really part of the grid. What happens is that when you enter edit mode on a normal text cell, the editor for that cell displays a TextBox control over the cell, and it is this TextBox control that has a built-in context menu.

    The editor for a ValueList cell also uses a TextBox, but only when it is set up to allow the user to type into the cell.

    So my guess here is that you have your ValueList column's Style property set to DropDownList. In DropDownList style, the user cannot type into the cell, they can only select from the list. Therefore, there is no way to select text or show the context menu.

    Are you able to click on the ValueList cell and get a caret and select text within the cells? Or does clicking on the ValueList cell just drop down the list without allowing you to select text?

Children