Sunday 29 Jan 2012   
Add Comment

DataGrid custom item renderer

Flex / ColdFusion Tutorial #9

A simple DataGrid custom item renderer (pretty small & hopefully well commented) using cfartgallery as a datasource. Note that the Quantity field is editable via a numeric stepper.

CustomItemEditor.mxml

The main App.



QuantityEditor.as

The Custom editor.



djs1_flexcf.cfc

The cfc



Demo

See this code running!


Download

Download this code as a zip!


Comments

Ok this works for the local database. I need to access oracle. I have it defined in cf and I can access it through the flex cf wizard demo. However by just changing the datasource name and the fields (in the query and the grid) I'm getting nothing. Is there different syntax for a database that is not local to coldfusion.....shouldnt I just be able to change the datasource name and that would be it?

Brad Bueche @ Wednesday 14 Jan 2009 - 12:54:32 PM

OK, the answer to my question is yes. I just re-typed everything (just to avoid sinking into a hole of frustration) and now its working. Thanks. This site is so awesome. I have learned sooooo much in just one afternoon! Thanks!!! Thanks!!! Thanks!!!
Brad Bueche @ Wednesday 14 Jan 2009 - 01:00:32 PM

Click button to add a comment


Author

David Stockton


Published

Friday 09 Jan 2009

Tags

cfcomponent  cffunction  cfquery  cfqueryparam  cfreturn  cfset  mx:Application  mx:columns  mx:DataGrid  mx:DataGridColumn  mx:RemoteObject  mx:Script