Unable to read the value from the cell.
I am adding an editable cell to the grid.
This is 11th column in the grid.
#myInput {text-align: right; width: 20px; height: 10px; }
var inputObj = new AW.UI.Input;
inputObj.setId("myInput"); // necessary for CSS rules
inputObj.setControlText("");
obj.setColumnWidth(50, 10);
obj.setCellEditable(true, 10);
obj.setCellTemplate(inputObj,10);
.....
obj.setCellModel(table1);
I add some text to this cell. When I try to read it like:
var knt = obj.getRowCount();
for(var i = 0; i <knt; i++ )
{
if ((obj.getCellValue(8,i) == true))
{
alert('add to cart after getting the qty');
//alert(obj.getCellValue(16,i));
poid = obj.getCellValue(16,i);
alert('obj'+ obj.getControlText(i,10));
alert('table'+ table1.CellValue(10,i));
qty = obj.getControlText(i,10);
url += "&qty_"+i+"="+qty+"&ac_"+i+"="+poid;
}
}
Both
alert('obj'+ obj.getControlText(i,10));
alert('table'+ table1.CellValue(10,i));
can not get the value I entered.
Any help is appreciated.
This is 11th column in the grid.
#myInput {text-align: right; width: 20px; height: 10px; }
var inputObj = new AW.UI.Input;
inputObj.setId("myInput"); // necessary for CSS rules
inputObj.setControlText("");
obj.setColumnWidth(50, 10);
obj.setCellEditable(true, 10);
obj.setCellTemplate(inputObj,10);
.....
obj.setCellModel(table1);
I add some text to this cell. When I try to read it like:
var knt = obj.getRowCount();
for(var i = 0; i <knt; i++ )
{
if ((obj.getCellValue(8,i) == true))
{
alert('add to cart after getting the qty');
//alert(obj.getCellValue(16,i));
poid = obj.getCellValue(16,i);
alert('obj'+ obj.getControlText(i,10));
alert('table'+ table1.CellValue(10,i));
qty = obj.getControlText(i,10);
url += "&qty_"+i+"="+qty+"&ac_"+i+"="+poid;
}
}
Both
alert('obj'+ obj.getControlText(i,10));
alert('table'+ table1.CellValue(10,i));
can not get the value I entered.
Any help is appreciated.
SARVA
March 27,