I am using smartclient 9
Following is my sample code :
isc.ListGrid.create({
ID: "playerLG",
fields: codesFields,
saveLocally: true,
canEdit:true,
editEvent: "click"
});
var codesFields = [
{name: "myText", title: "My Text"},
{name: "mySelect", title: "My Select", type: "select" valueMap:{'T':'Tennis','G':'Golf','S':'Soccer'}},
];
Above grid has some data. I want to retreive that data from grid.
for(var i=0; i< playerLG.data.getLength(); i++) {
var rowObj = playerLG.data[i];
//var rowObj = playerLG.getRecord(i);
var name = rowObj["myText"];
var sport = rowObj["mySelect"];
}
In the above code "name" contains the correct value but in "sport" we have undefined.
How can I retreive the value of a select box in the listgrid ?
Following is my sample code :
isc.ListGrid.create({
ID: "playerLG",
fields: codesFields,
saveLocally: true,
canEdit:true,
editEvent: "click"
});
var codesFields = [
{name: "myText", title: "My Text"},
{name: "mySelect", title: "My Select", type: "select" valueMap:{'T':'Tennis','G':'Golf','S':'Soccer'}},
];
Above grid has some data. I want to retreive that data from grid.
for(var i=0; i< playerLG.data.getLength(); i++) {
var rowObj = playerLG.data[i];
//var rowObj = playerLG.getRecord(i);
var name = rowObj["myText"];
var sport = rowObj["mySelect"];
}
In the above code "name" contains the correct value but in "sport" we have undefined.
How can I retreive the value of a select box in the listgrid ?