:: Forum >>

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..
Wednesday, February 8, 2006
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)
Wednesday, February 8, 2006
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.

G Cayman
Wednesday, February 8, 2006
Try this.

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

This topic is archived.

Back to support forum

Forum search