|
|
Home /
Groups /
Adobe Flex
Flex Datagrid click event
-----BEGIN PGP SIGNED MESSAGE-----Graham Pearson 08/15/08 12:52 A listen for the change event instead. click is thrown when the user mouseDouglas Knudsen 08/15/08 09:00 A -----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----- 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||