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
    394
    Vote Rating
    98
    danguba is just really nice danguba is just really nice danguba is just really nice danguba is just really nice

      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
    394
    Vote Rating
    98
    danguba is just really nice danguba is just really nice danguba is just really nice danguba is just really nice

      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