///
Ext.onReady(function(){
var data = [
[1,"wilson.fu",10],
[2,"wilson.fu2",20],
[3,"wilson.fu3",30]
];
var sqldata = new Array() ;
for(var i=0;i {
sqldata.push([i.toString(),"wilson.fu" i.toString(),10*i]);
}
var sm = 新しい Ext.grid。 CheckboxSelectionModel({handleMouseDown:Ext.emptyFn});
var cm = new Ext.grid.ColumnModel([
sm,
{header:"编号",dataIndex:"id",sortable:true} ,
{header:"姓名",dataIndex:"name"},
{header:"排序值",dataIndex:"ordernum",sortable:true}
]); >var store = new Ext.data.SimpleStore({
フィールド:[
{name:"id"},
{name:"name"},
{name:"ordernum"}
]
});
store.loadData(sqldata);
var gd = new Ext.grid.GridPanel({
renderTo:"グリッド",
cm:cm、
sm:sm、
store:store、
loadMask:true
});
Ext.get("btn").on(" click",function(){
var selected = gd.getSelectionModel().getSelections();
debugger
//獲得した実行的值
});
});