I have an internal table:
var listMakeModel = [
{ value: foo1, Equiptype: desktop, label: fooCorp Desktop}
{ value: foo2, Equiptype: desktop, label: fooCorp Desktop 2}
{ value: foo3, Equiptype: server, label: fooCorp Server}
];
Which I made into an adapter:
var sourceMakeModel =
{
datatype: "array",
datafields: [
{ name: 'label', type: 'string' },
{ name: 'Equiptype', type: 'string' },
{ name: 'value', type: 'string' }
],
localdata: listMakeModel
};
var adapterMakeModel = new $.jqx.dataAdapter(sourceMakeModel, {
autoBind: true
});
In the program, I have a dropdown box.
I also have a non-editable, non-displayed column labelled “Equipment Type”.
What I want to do is automatically fill in the “Equipment Type” column with the value from “Equiptype”
The values for this ‘Type’ column will be used laterfor auditing purposes.
My first guess is:
{ text: 'Type', columngroup: 'HoldingBin', datafield: 'EquipmentType', width: 80, editable: false,
$("jqxgrid").jqxGrid('setcellvalue', row, "MakeModel", 'EquipType')
},
…which is not correct.
Any help?