Hi all,
When i try to use the search feature (i write a text in the seach form, the errors come when i press enter) of jqGrid i get a JS error:
Uncaught SyntaxError: Unexpected token ILLEGAL — jquery.jqGrid.min.js – line 21
I make the table with this code:
jQuery(“#table”).jqGrid({ datatype: “local”
,height: “auto”
,colNames:[“ID”,”Name”,”Surname”,”Email”]
,colModel:[
{name:'ID', index:'ID', width : 160, sortable : true, align: 'left', title: false, key:true}
,{name:'Name', index:'Name', width : 110, sortable : true, align: 'left', title: false}
,{name:'Surname', index:'Surname', width : 160, sortable : true, align: 'left', title: false}
,{name : 'Email', index:'Email', width : 160, sortable : true, align: 'left', title: false}
]
,autowidth: true
,sortname: 'ID'
,sortorder: “desc”
,rowNum: 20
,rowList: [20,40,60]
,pager: '#tableDiv'
,viewrecords: true
,onSelectRow: function (p_id) { edit(p_id) }
}).navGrid('#tableDiv', {search:true, edit: false, add:true, del:false});
And i fill it with a code like this:
jQuery(“#table”).clearGridData();
var f,F = jsonData.length;
for ( f=0; f
}
$(“#table”).setGridParam({rowNum:20}).trigger(“reloadGrid”);
What is wrong? I have looked everything but i cant fix it.
Very much thanks!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top