My problem is I don't know how to code with jQuery and PHP and PostgreSQL.
I just reuse your demo files without changing at all. From the batch editing example file, I just changed the datamodel.
So there is no such a thing :
Initialize the pqGrid with selectionModel option specified.
pq.grid( selector, {selectionModel: { type: 'cell', mode: 'block'} } );
Get or set the selectionModel option, after initialization:
//getter
var selectionModel=grid.option( "selectionModel" );
//setter
grid.option( "selectionModel", {type: 'row', mode: 'single'} );
I am confused with two differents type to code. I feel I have to follow below style. because the most of the domos file are this style.
var obj = {
hwrap: false,
//autoRow: false,
rowHt: 32,
rowBorders: false,
trackModel: { on: true }, //to turn on the track changes.
scrollModel: {
horizontal: true
},
swipeModel: { on: false },
editor: {
select: true
},
I need exactly perfect sample code. Honestly, I don't know yet.
var obj = {
selectionModel : {type: 'row', mode: 'block'},
All of these codes make me sick. I don't know how to handle these things.
I can't find these things in the PHP book I brought, youtube, the internet, etc.
var sel = grid.SelectRow(); --> rowIndx = rid.SelectRow() ???
//Insert an empty row at rowIndx : 3 --> How to get 3. Where ???
grid.addRow(
{ newRow: {}, rowIndx: 3 }
);
//Insert multiple rows at once.
grid.addRow( {
rowList:[
{ newRow: {}, rowIndx: 3 },
{ newRow: { product: 'Apple' }, rowIndx: 5 }
]
});
Best regards,
Steve