May I instanciate a JqxGrid like this, direct in javascript, or , I´ll have some problems ?
ExaMPLE:
$("#jqxgrid").jqxGrid({
width: 670,
source: dataAdapter,
theme: ‘energyblue’,
altrows: true,
pageable: true,
autoheight: true,
selectionmode: ‘multiplecellsextended’,
columns: [
{
text: ‘First Name’,
datafield: ‘firstname’,
width: 90},
{
text: ‘Last Name’,
datafield: ‘lastname’,
width: 90},
{
text: ‘Product’,
datafield: ‘productname’,
width: 177},
{
text: ‘Available’,
datafield: ‘available’,
width: 67,
cellsalign: ‘center’,
align: ‘center’},
{
text: ‘Ship Date’,
datafield: ‘date’,
width: 90,
align: ‘right’,
cellsalign: ‘right’,
cellsformat: ‘d’},
{
text: ‘Quantity’,
datafield: ‘quantity’,
width: 70,
align: ‘right’,
cellsalign: ‘right’},
{
text: ‘Price’,
datafield: ‘price’,
cellsalign: ‘right’,
align: ‘right’,
cellsformat: ‘c2’}
]
});