我的extgrid,绑定了一个store,我希望在加载前针对某一列数据转码之后再显示应该怎么弄,新手上路,请大家帮忙,我希望对filepath列进行转码然后再显示,我需要再哪里做操作varconten...
我的ext grid ,绑定了一个store,我希望在加载前针对某一列数据转码之后再显示应该怎么弄,新手上路,请大家帮忙,我希望对filepath列进行转码然后再显示,我需要再哪里做操作
var contentNode = new Ext.data.Record.create([
{name: 'filename',type:'String',width:'100'},
{name: 'filepath', type: 'string',width:'200'},
{name: 'filesize', type: 'string',width:'100'},
{name: 'filestate', type: 'string',width:'100'}
]);
//读取json数据
var reader = new Ext.data.JsonReader({'root':'rows'},contentNode);
//获取json数据源
var store = new Ext.data.JsonStore({
url:"csl/dir_list.php?path="+path+"&type="+type,
root:'rows',
reader:reader,
autoLoad:true,
fields:['filename','filepath','filesize','filestate']
});
展开