datagrid实现行的上移和下移



	
	
	
	jQuery EasyUI Demo
	
	
	
	
	


	

DataGrid

Item ID Product ID List Price Unit Cost Attribute Stauts

data-options="singleSelect:true"
实现单行选择.

参考数据:

{"total":28,"rows":[
	{"productid":"FI-SW-01","unitcost":10.00,"status":"P","listprice":16.50,"attr1":"Large","itemid":"EST-1"},
	{"productid":"K9-DL-01","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
	{"productid":"RP-SN-01","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Venomless","itemid":"EST-11"},
	{"productid":"AV-CB-01","unitcost":92.00,"status":"P","listprice":193.50,"attr1":"Adult Male","itemid":"EST-18"}
]}

下移同理.

你可能感兴趣的:(javascript)