Forum



11:56

18/04/2010

Hi... I am beginner and I need some help for getting jqgrid to work. I got it to display my tables and stuff. The thing is that I am stuck from here on. I need help on how to search and edit data. I saw the demo of jqgrid and the form editing and searching looks amazing.....It would be nice if someone could help me with this...
This is my code
<table id="list1"></table>
<div id="pager1"></div>
<br/>
<br/>
<script type="text/javascript">
jQuery().ready(function (){
jQuery("#list1").jqGrid({
url:'ictjobrequests.php',
datatype: "xml",
colNames:['ID','Date', 'Ext','IP','Type','Department','Username','Description','Order No.','Status'],
colModel :[
{name:'cf_id', index:'cf_id', width:55},
{name:'recordtime', index:'recordtime', width:150},
{name:'ext_number', index:'ext_number', width:50, align:'right'},
{name:'ipaddress', index:'ipaddress', width:80, align:'right'},
{name:'problem_type', index:'problem_type', width:80, align:'right'},
{name:'department', index:'department', width:120, align:'right'},
{name:'username', index:'username', width:100, align:'right'},
{name:'problem_description', index:'problem_description', width:200, sortable:false},
{name:'order_id', index:'order_id', width:80, align:'right'},
{name:'status', index:'status', width:50, align:'right'}
],
pager: '#pager1',
rowNum:10,
rowList:[10,20,30],
sortname: 'cf_id',
sortorder: 'desc',
viewrecords: true,
caption: 'ICT Job Requests',
height: 600,
editurl: "insert_ictjobrequest.html"
});
jQuery("#list1").jqGrid('navGrid','#pager1',{edit:true,add:true,del:true,view:true});
});
</script>
Most Users Ever Online: 715
Currently Online:
77 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66