1. #11
    Ext User angelflaree's Avatar
    Join Date
    Jan 2008
    Posts
    64
    Vote Rating
    0
    angelflaree is on a distinguished road

      0  

    Default


    I'm not sure about which css is applied that disable the selection.

    I am using the row selection model and I use Inspect function in the Firebug, see the class for a cell's inner text is using the css:

    x-grid3-cell-inner x-grid3-col-NN (NN is the column number of that cell)

    Then I add:
    Code:
    "-moz-user-select: text;
        
     -moz-user-focus: normal;"
    to the 'x-grid3-cell-inner' css definition.

    But still not able to highlight the cell and select the text.

    ANYONE Know the CSS please help
    good good study,
    day day up ; )

  2. #12
    Sencha User
    Join Date
    Feb 2008
    Posts
    155
    Vote Rating
    0
    WixSL is on a distinguished road

      0  

  3. #13
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    This a GXT forum guys... not ext-js....

  4. #14
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default


    I added the following code so that clicking a button selects / highlights the whole grid and then you can use the browser's copy function (menus or ctrl-c)

    Code:
        
        public void selectForCopy()
        {   
             El el = grid.getView().getScroller().getParent();
             selectElement(el.dom);
         }
    The selectElement method creates ranges for W3C compliant browsers or IE
    See:
    http://www.quirksmode.org/dom/range_intro.html
    http://help.dottoro.com/ljgbbkjf.php
    http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx


    Code:
         
    private static native void selectElement(Element element)/*-{
        if  ($wnd.getSelection) // W3C
        {
            var range = $doc.createRange();
            range.selectNodeContents(element);
            $wnd.getSelection().addRange(range);
        } 
        else if  ($doc.selection) // IE
        {
            var range =  $doc.body.createTextRange();
             range.moveToElementText(element);
            range.select();
       }
    
    }-*/;

  5. #15
    Sencha User
    Join Date
    Mar 2011
    Posts
    19
    Vote Rating
    0
    dhruv88esh is on a distinguished road

      0  

    Default This solution working for all browsers

    This solution working for all browsers


    grid.disableTextSelection(false);

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar