House of Fusion
Home of the ColdFusion Community

Search flex

November 20, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  Adobe Flex

Flex Datagrid click event

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
08/15/2008 12:52 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 While working with the flex datagrid click event, I ran into an issue which I am needeing assistance with. This grid lists the Businesses within a radius and has columns being displayed of Business Name, Address, City, State and ZipCode. The column which is not displayed is the Record ID from the database. In my actionscript, when a user clicks on a row, I pass the RecordID to a Popup Titlewindow which will display the entire record for this dealer. My Issue is, if the user clicks on a column header, it produces and error message because the DealerID does not exist. I have tried to check for this DealerID == null or via DealerID.length == 0 however when I do this, I get a debugging error message of Error #1009: Cannot access a property or method of a null object reference. My thought is if the user would click on a column header, then I would sort the returned recordset based on the column which they clicked on. Any Ideas? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIpDA93GqPAgBSy90RAksNAJ9/hMktw2yjfsY+FHpSY1HkenRccgCfagDD tnGxJMpwPVWCAi0ZKi12DLY= =/8pp -----END PGP SIGNATURE-----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas Knudsen
08/15/2008 09:00 AM

listen for the change event instead.  click is thrown when the user mouse clicks anywhere on a datagrid, change is thrown only when the selectedItem changes by clicking a different row in the datagrid. DK On Thu, Aug 14, 2008 at 9:16 AM, Graham Pearson <gpearson@yourcfpro.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists