jqgrid实现行拖拽功能

 
  $(grid_selector).jqGrid({ 
		data: url,
		datatype: "get",
		height: 320,
		colNames:[ '投递序','流水号','任务id','任务号','任务类型','姓名','地址'],
		colModel:[
			{name:'DELISEQ',index:'DELISEQ',hidden:true},
			{name:'ID',index:'ID',hidden:true,key:true},
			{name:'OMID',index:'OMID',hidden:true},
			{name:'MAILNO',index:'MAILNO',width:'50'},
			{name:'DRLABEL',index:'DRLABEL',width:'35',formatter : 'select',editoptions : {value : drLabel1}},
			{name:'RECEIVERNAME',index:'RECEIVERNAME',hidden:true,width:'30'},
			{name:'RECEIVERADDR',index:'RECEIVERADDR'}
		], 
		pager : pager_selector,
                editurl: editUrl, 
                 multiselect:true,
		caption: "任务列表",
		autowidth: true 
	});
    //实现行拖拽
    $(grid_selector).jqGrid('sortableRows', {
		items : '.jqgrow:not(.unsortable)'
	});

你可能感兴趣的:(html5,javascript)