Hola, necesito enviar un valor por defecto a un input de tipo "select" en una columna , no se como enviarla
I'm trying paramquery pro version.
Hi, I need set defaul value to "select" when I use addRow function, thanks
Sorry to my English bad
.
var pq = {};
pq.countries = [
{ id: "CA", name: "Canada", regions: "Alberta|British Columbia|Manitoba|New Brunswick|Newfoundland|Northwest Territories|Nova Scotia|Nunavut|Ontario|Prince Edward Island|Quebec|Saskatchewan|Yukon Territory" },
{ id: "VI", name: "Virgin Islands, U.S.", regions: "St. Thomas|St. John|St. Croix" }
];
objTable.colModel = [
{title: 'Bod.', width: 40, dataType: 'string', dataIndx: 'bo'},
{title: 'Cod.', width: 60, dataType: 'string', dataIndx: 'co'},
{title: 'Cant', width: 40, dataType: 'integer', dataIndx: 'ca'},
{title: 'Descripcion', width: 170, dataType: 'string', dataIndx: 'de'},
{title: 'Iva', width: 170, dataType: 'string', dataIndx: 'iv'},
{title: 'PU', width: 80, dataTyple: 'float', dataIndx: 'pu'},
{title: 'Descuento', width: 80, dataType: 'float', dataIndx: 'ds'},
{title: 'Total', width: 100, dataType: 'float', editable: false, dataIndx: 'to'},
{title: 'vdescuento', width: 80, dataType: 'float', editable: false, dataIndx: 'vd'},
{title: 'viva', width: 80, dataType: 'float', editable: false, dataIndx: 'vi'},
{title : 'Tax', dataIndx : 'tax', width :200,
editor : {
type : 'select',
mapIndices : {name :'tax', 'id' : 'id'},
labelIndx : 'name',
valueIndx : 'id',
prepend : {'S':'Si'},
options : pq.countries
}},
];I don't know how put here forn add default value to select
$grid.pqGrid('addRow', {rowData: {tax : ' ? ? ? ? '}});