Get the cell value?
how can i get the value of cell?
thanks
thanks
Tina
December 6,
function MyFunction(){
var id = gridobj.getCellValue(0, index);
alert("current selection: " + id);
}
obj.setEvent("onkeydown", readChar);
function readChar(e)
{
var key = e.keyCode;
//alert(e);
switch(key)
{
case 46:
answer = confirm("Are you sure to delete?");
if (answer)
{
//here i wont to retreve row id from "0 column"
var index = obj.getSelectionProperty("index");
var id = gridobj.getCellValue(0, index)
//and after that something like that:
table.setURL("myXML_PhP.php?delete=true&id="+id);
}
break;
case 13:
answer = confirm("Are you sure to insert?");
if (answer)
{
addRow(obj);
}
break;
}
}
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021