Hello, I'm new to this jquery plugin. I decided to use it among many others because this one looks the most
powerful. However I'm having problems to get it working.
First of all, as said in the topic, since the content will be served from the server (PHP), and I want to use it to
display different lists of items, I need that both properties colNames and colModel will be served dynamically.
So, this is how I set it up in a js file:
|
1 2 3 4 5 6 7 8 9 10 11 |
$(document).ready(function() {<br /> $("#listing").jqGrid({<br /> datatype: "clientSide",<br /> height: 500,<br /> colNames: namesList,<br /> colModel: modelList,<br /> multiselect: true,<br /> viewrecords: true,<br /> caption: "Test"<br /> });<br /> }); |
Here's an example in PHP of an item type whose records must be listed. I set its corresponding column
names and how will they be displayed:
|
1 |
$colNames = array('Id', 'Title', 'Featured', 'Language', 'Date created', 'Date modified', |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top