|
getEditingData does essentially:
function getEditingData ( index , fieldName
)
{
return
dataProviderArray [ index ] . fieldName;
}
So, maybe you want to try:
var item:Object =
dataProvider.getItemAt(0);
var data:Object = item.getItemAt(4);
GetEditingData, at least when I used it, was used
for RecordSets and flat objects I got back, like so:
someArray = [
{label: "One", data: 1},
{label: "Two", data: 2},
{label: "Three", data: 3}];
var value = someArray.getEditingData(1,
"data");
trace(value); // 2
----- Original Message -----
From: Parekh, Shweta -
BLS CTR
Sent: Wednesday, October 19, 2005 10:18 AM
Subject: [flexcoders] Problem with getEditingData() method in
dataProvider Hi, I have a question about getEditingData() method in dataProvider. I have a datagrid as below. My model has a two dimensional String array called columnarSpec which I give to the dataProvider of my datagrid. The data in the datagrid is displayed fine. But when I try to access a cell value from the datagrid using getEditingData() method, the result is undefined. If I use the indexes on the dataProvider i.e. columnar_dg.dataProvider[1][4], it displays the cell value correctly. Can anyone please tell me why the getEditingData method does not return the cell value? What am I doing wrong here. <mx:Script> trace("Data 1: "+columnar_dg.dataProvider.getEditingData(1,
"C")); -- Result
Undefined <mx:Model
id="listSpec"> <mx:Form> Thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
Title: Problem with getEditingData() method in dataProvider

