How to replace some text with something in extJS? -
have question: have in database filed text (i submitted through form).
then have extjs panel data. made, when click on soem field, appears message box plain text (but in database text beautiful ul's, /br/'s , son) :( ok, eyes can't read normally! how avoid this? maybe in extjs exists replace params? replace('/n/', '//br/').. or?
my grid
var grid = new ext.grid.gridpanel({ id : 'grid', store : store, frame : true, autoscroll :true, columns : my_columns, striperows : true, title :'answers', iconcls : 'arrow', listeners: { celldblclick: function(grid, rowindex, cellindex, e){ var rec = grid.getstore().getat(rowindex); var columnname = grid.getcolumnmodel().getdataindex(cellindex); ext.msg.show({ title : 'message', msg : rec.get(columnname), modal : true, autowidth : true, maxheight : 500, autoscroll : true, closable : true, resizable : false, draggable : false, maxwidth : 500, buttons : ext.msg.ok }); ext.msg.getdialog().dd.lock(); } } });
hard understand problem - talk panel, post example grid.
anyway... maybe problem message dialog window has preventbodyreset: false
default, means default browser styles <ul>
, many other elements reset.
unfortunately there no easy way set preventbodyreset: true
message box window. if want message boxes, maybe can achieve code that:
ext.messagebox.getdialog().getel().addclass('x-panel-reset');
if don't want apply globally, have create own message window.
Comments
Post a Comment