jQuery(function($){

	$("#ResponsablesExpedientes").rup_table({
		rowNum:20,
		url: "../aa21b29s01",
		colNames: [
		    "idRespExp",
			"cserv29",
			"cexpe29",
			"aexpe29",
			"nexpe29",
			"crespo29",
			"frespo29"
		],
		colModel: [
		    { 	name: "idRespExp", 
 				label: "idRespExp",
 				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "cserv29", 
			 	label: "cserv29",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "cexpe29", 
			 	label: "cexpe29",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "aexpe29", 
			 	label: "aexpe29",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "nexpe29", 
			 	label: "nexpe29",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "crespo29", 
			 	label: "crespo29",
				align: "right", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			},
			{ 	name: "frespo29", 
			 	label: "frespo29",
				align: "left", 
				width: 150, 
				editable: true, 
				fixed: false, 
				hidden: false, 
				resizable: true, 
				sortable: true
			}
        ],

        model:"Aa21b29s01",
        usePlugins:[
			"formEdit",
        	"feedback",
			"toolbar",
        	"contextMenu",
        	"fluid",
        	"filter",
        	"search"
         	],
		primaryKey: "idRespExp",
		sortname: "cserv29",
		sortorder: "asc",
		loadOnStartUp: true,
        formEdit:{
        	detailForm: "#ResponsablesExpedientes_detail_div",
			fillDataMethod: "clientSide",
         	validate:{ 
    			rules:{
    				"cserv29":{
						required: false
    					},
    				"cexpe29":{
						required: false
    					},
    				"aexpe29":{
						required: false
    					},
    				"nexpe29":{
						required: false
    					},
    				"crespo29":{
						required: false
    					},
    				"frespo29":{
						required: false
    					}
    				}
    		}
        }
	});
});