1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    nev is on a distinguished road

      0  

    Default how can I prevent images or iframes getting displayed on EditorGrid with extjs 3.4?

    how can I prevent images or iframes getting displayed on EditorGrid with extjs 3.4?


    Hi, I am using extjs 3.4 and have an EditorGrid and when I enter the following in any cell in EditorGrid, image or iframe gets displayed.
    <iframe src='www.google.com' />
    <img src="www.google.com" />

    how can I prevent image or iframes getting displayed in the cell?

  2. #2
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Default


    You could add following render to a column
    Code:
    renderer: function(value, meta, record){
        return Ext.util.Format.htmlEncode(value)
    }
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    nev is on a distinguished road

      0  

    Default


    It worked Thanks a lot!

  4. #4
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Default


    Anytime
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi