Jqxgrid direct in javascript

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’}
]
});

Yes, if you do everything correctly,

Once it is created, you’ll have to use Form1.appendChild(jqxGrd) to put it on the current form.

https://www.w3schools.com/jsref/met_node_appendchild.asp

George Henne
NS BASIC Corporation
http://www.nsbasic.com

Or to a Container, correct ?

I asked it, because to do it in basic we need to use some especific NSB functions.

Thank you so much !

Yes, a Container will work as well.

George Henne
NS BASIC Corporation
http://www.nsbasic.com

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.