-
22 Oct 2012 7:49 PM #1
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?
-
22 Oct 2012 11:31 PM #2
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
-
23 Oct 2012 11:28 AM #3
-
23 Oct 2012 12:48 PM #4
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


Reply With Quote


Thanks a lot!