Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Copy/paste from grid

    Hi,
    I would like people to be able to select with their mouse (and keyboard, just like a standard webpage) values from the grid and copy them (ctrl-c) to paste it somewhere else.

    Is there some property/functionality in Smartclient which I can use for this? It seems not possible/enabled in the showcase and in my code.

    Thanks for any pointers on how to get this working!

    gr. Martin

    #2
    Hi Martin,
    Code:
        bodyProperties:{canSelectText:true}
    In your ListGrid definition should achieve this.

    Comment


      #3
      I have used this property and this is working fine for me..
      But I want to know how i can set this property globally to any parent canvas so that its child components can inherit it.
      Thanks in advance.

      Comment


        #4
        See the QuickStart Guide discussion of creating custom classes. You can create your own subclass of ListGrid that turns on this property by default, then use that class pervasively.

        Note that changing the framework default would be an invalid approach to this, since you would end up affecting many different scenarios of internal re-use of ListGrid.

        Comment

        Working...
        X