3.2.0

Urgent:How to get values of a cell present in a grid?

Dear all,

I am using list grid of domapi 3.0..When i click on a row, i want the value of a particular cell present in that row.

Here is my code.

var v=obj.selected[0].cells[0].innerHTML;

But it is getting error as obj.selected.cell is null or not an object.

Please help me..
Rukesh
February 8,
There is a demo of how to get values from grids in the AW Demo Pages area of my web site www.FriendsOfAW.com
Jim Hunter (www.FriendsOfAW.com)
February 8,
Jim,
Is refering to the Basic Knowledge Demo #1, Unfortunately you have to view the source of to read and see how it works, (I'll update that soon).
Note this Demo, is really designed to show you, when and how, RowPosition vs RowIndicies are retruned.. which is a necessary 'need to know' for some applications.

Perhaps a better example of just getting values is in examples/new/editing.htm which comes with your v2.0 kit.

-geoff
G Cayman
February 8,
Try this.

obj.onCellClicked = function(event, col, row){
var cellValue = obj.getCellText(col,row);
}
Viren Dholakia
March 17,

This topic is archived.

See also:


Back to support forum