Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Getting value of Cell in Grid

Getting value of Cell in Grid

2004-03-17       - By marc vezina

 Back
Reply:     1     2     3     4  

It does work. What is your grid instance name?

-- --Original Message-- --
From: John_Sheridan [mailto:john@(protected)]
Sent: March 17, 2004 9:55 PM
To: flashcoders@(protected)
Subject: RE: [Flashcoders] Getting value of Cell in Grid

Hmmm, unfortunately that does not work.  I will however, try to dissect
this code, and get a handle on what you were trying to teach me.  I
always appreciate any information that is offered - whether it works or
not :)

Oh well, I am very open to any additional suggestions as to how I can
get this to work.

Thanks in advance,

John

-- --Original Message-- --
From: marc vezina [mailto:antiflag@(protected)]
Sent: Wednesday, March 17, 2004 8:33 PM
To: flashcoders@(protected)
Subject: RE: [Flashcoders] Getting value of Cell in Grid


Try this:

myListener.cellPress = function(eObj) {
 et = eObj.target;
 var cell = "(" + eObj.columnIndex + ", " + eObj.itemIndex + ")";
 trace(" The cell at " + cell + " has been clicked ");
 
 trace("Cell Text: " + et.getItemAt( eObj.itemIndex
)[et.getColumnAt(eObj.columnIndex).columnName] );

};
grid.addEventListener("cellPress", myListener);

Cheers

-- --Original Message-- --
From: John_Sheridan [mailto:john@(protected)]
Sent: March 17, 2004 9:12 PM
To: flashcoders@(protected)
Subject: [Flashcoders] Getting value of Cell in Grid

Hello All,

I have a Grid populated with a Remoting ResultSet...

If I have a Row highlighted, and I want to display the value in the
first Column, how the heck do I do that?  I looked high and low - and
the answer (as always) totally escapes me.  In the archives, I also
found a frustrated person asking something similar...

I first declared a variable as a Column Object, etc. for example:

var myColumn = myGrid.getColumnAt(0);
trace(myColumn.?????);

What am I missing.... myColumn.Value? - naw, that's too simple, and
straightforward....

Sorry if I am being irritable, but stuff like this should be so darn
easy, and it's usually some elusive method I need to call, versus a
Property, or something...

Could anybody point me in the right direction?

Thanks,

John


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107251
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)



=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107252
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107253
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107254
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)