1. #1
    Sencha User
    Join Date
    Jun 2011
    Location
    Bangalore, India
    Posts
    176
    Answers
    4
    Vote Rating
    2
    renganathan is on a distinguished road

      0  

    Default Answered: Copy grid cell value into clipboard in extjs4- Help needed

    Answered: Copy grid cell value into clipboard in extjs4- Help needed


    Hi all,

    I want to copy the selected grid cell value into the clipboard . i don't have any clue to do that .


    Guys please help me to implement this feature.


    Thanks in advance

    Renga
    Thanks,

    RENGANATHAN M G

  2. Please try extjs 4.1 + version

    and add the below lines into the grid

    viewConfig :
    {
    enableTextSelection: true

    },



    Quote Originally Posted by hundare View Post
    Hi,

    Did you find the solution? If yes can you please share the solution?

    Thanks!

  3. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Vote Rating
    1
    hundare is on a distinguished road

      0  

    Default


    Hi,

    Did you find the solution? If yes can you please share the solution?

    Thanks!

  4. #3
    Sencha User
    Join Date
    Jun 2011
    Location
    Bangalore, India
    Posts
    176
    Answers
    4
    Vote Rating
    2
    renganathan is on a distinguished road

      0  

    Default


    Please try extjs 4.1 + version

    and add the below lines into the grid

    viewConfig :
    {
    enableTextSelection: true

    },



    Quote Originally Posted by hundare View Post
    Hi,

    Did you find the solution? If yes can you please share the solution?

    Thanks!
    Thanks,

    RENGANATHAN M G

  5. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Vote Rating
    1
    hundare is on a distinguished road

      1  

    Default


    Iam using 4.0.
    So I found a workaround for 4.0

    Code:
    
    
    Code:
    columns:[
    
    {header:'Name',  dataIndex:'name', field:'textfield'},
            {header:'Email', dataIndex:'email', flex:1, 
                editor:{
                    xtype:'textfield',                readOnly:true,
                    allowBlank:false
                }
            },
            {header:'Phone', dataIndex:'phone'}
        ],
        selType:'rowmodel',
        plugins:[
            Ext.create('Ext.grid.plugin.RowEditing',{
                clicksToEdit:1
            })
        ],


    I have used the rowediting plugin and I have set the editor to 'textfield' of the column and used the readOnly config which will avoid any update on the grid data.
    This works pretty well on all browsers.

    Thanks for your help

Thread Participants: 1

Tags for this Thread