var url = "json/CenterGridJson.aspx?Param=select&TypeID="+typeID;
var sm = new Ext.grid.CheckboxSelectionModel();
//download by http://www.codefans.net
var cm = new Ext.grid.ColumnModel
([
sm,new Ext.grid.RowNumberer({header:"编号",width:50}),
{header:"编号",dataIndex:"ID",width:10,hidden:true},
{header:"标题",dataIndex:"TypeCName",width:100,editor:new Ext.form.TextField()},
{header:"英文名称",dataIndex:"TypeEName",width:100,editor:new Ext.form.TextField()},
{header:"状态",dataIndex:"DelFlag",width:100,renderer:function(value){if(value==false) {return "显示";} else {return "隐藏";}}},
{header:"添加日期",dataIndex:"AddDate",width:100,renderer:Ext.util.Format.dateRenderer('Y年m月d日')}
]);
cm.defaultSortable = true;
var fields =
[
{name:"ID"},
{name:"TypeCName"},
{name:"TypeEName"},
{name:"DelFlag"},
{name:"AddDate"}
// {name: "MenuCode" }
];
var store = new Ext.data.Store
没明白你什么意思?说明白点!
我使用的框架,在js里面实现页面的跳转,表中字段MenuCode存放页面跳转的地址。
renderer:function(value){return "<div algin='center'><a href=javascript:exp()>"+value+"</a></div>}
exp()是你要调用的方法,在方法里面应该可以实现跳转