Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created July 29, 2010 16:33
Show Gist options
  • Select an option

  • Save rangalo/498596 to your computer and use it in GitHub Desktop.

Select an option

Save rangalo/498596 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function() {
jQuery(#projecttable).jqGrid({
url: 'projects',
datatype: 'xml',
mtype: 'POST'
colNames: ['Name', 'Beginn Datum', 'End Datum'],
colModel: [
{name: 'Name', index: 'name', width: 55},
{name: 'Beginn Date', index: 'start_date', width:90 },
{name: 'End Datum', index: 'end_date', width:80, align: 'right' }
],
pager: '#pager'
rowNum: 10,
sortname: ''
sortorder: ''
viewrecords: true,
caption: 'Projekte'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment