hi to all,
i am creating a detail list in the jqgrid with the onSelectRow..but it shows me an error in my console like this:
<div id="content">
<h1>An Error Was Encountered</h1>
The URI you submitted has disallowed characters. </div>and here is the code in the CONTROLLER:
onSelectRow: function(ids) {
if(ids == null) {
ids=0;
if(jQuery("#detFlex1").jqGrid('getGridParam','records') >0 )
{
jQuery("#detFlex1").jqGrid('setGridParam',{url:"root + mod + '/detaillistview'"+ids,page:1});
jQuery("#detFlex1").jqGrid('setCaption',"System User Detail: "+ids)
.trigger('reloadGrid');
}
} else {
jQuery("#detFlex1").jqGrid('setGridParam',{url:"root + mod + '/detaillistview'"+ids,page:1});
jQuery("#detFlex1").jqGrid('setCaption',"System User Detail: "+ids)
.trigger('reloadGrid');
}
}
});
jQuery("#listFlex").jqGrid(','#pager2',{edit:true,add:true,del:true,search:true,refresh:true },
{}, // edit options
{}, // add options
{}, //del options
{multipleSearch:true});
jQuery("#listFlex").jqGrid('navButtonAdd','#pager2',{
caption: "Columns",
title: "Reorder Columns",
onClickButton : function (){
jQuery("#listFlex").jqGrid('setColumns');
}
});
$("#listFlex").jqGrid(','#detFlexlist',{add:false,edit:false,del:false});
$('#detFlex1').jqGrid
(
{
url: root + mod + '/detaillistview',
editurl: root + mod + '/post2',
datatype: "json",
mtype: 'POST',
colNames : [ '','Company Code', 'Company Name', '','' ],
colModel : [
{name : 'checkbox', index: 'checkbox', width : 15, align : 'left', process:checkDetails}
,{name : 'company_code', index: 'company_code', width : 80, align : 'left'}
,{name : 'company_name', index: 'company_name', width : 120, align : 'left'}
,{name : 'company_id', index: 'company_id', hidden:true}
,{name : 'company_access_id', index: 'comapny_access_id',hidden:true}
],
rowNum:10,
rowList:[10,20,30],
pager: '#detFlexlist',
sortname: 'company_code',
viewrecords: true,
sortorder: "asc",
autowidth: true,
height: "200",
caption:"System User Detail List "
}).navGrid('#pager10_d',{add:false,edit:false,del:false});i think the url:“root + mod + ‘/detaillistview’” scripts are the responsible for the error…
hope anyone could help me…
thanks in advance,
maria :’(