|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Building Datagrid Using ActionscriptI have easily conquered building a simple datagrid using actionscript and then my client needed me to add a button. UGH. I have looked for awhile now and can't find a good working solution to this requirement. In my action script I have created the column that will hold the button - but how do I actually get a button into that column? Help! Thanks! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6017 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
|
|
Re: Building Datagrid Using ActionscriptYes - I thought it would be easy to do in Actionscript too since I know the MXML side of it. But it isn't coming together. :( Do you know of an example? (And thanks for the quick response!) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6019 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
|
|
Re: Building Datagrid Using Actionscript> I have easily conquered building a simple datagrid using actionscript and then my > client needed me to add a button. UGH. I have looked for awhile now and can't find > a good working solution to this requirement. In my action script I have created the > column that will hold the button - but how do I actually get a button into that column? You need to use a renderer and/or editor. I usually do this sort of thing in MXML rather than AS, but it shouldn't really be that different in either case. There's probably no analog for an inline renderer in AS, but you could use a separate component for the renderer. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informati ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6018 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
|
|
Re: Building Datagrid Using ActionscriptHere's my very simple code. Note when I get to itemRenderer - I can't figure out the secret. var newColumn6:DataGridColumn = new DataGridColumn(); newColumn6.wordWrap = true; var emailBtn:Button = new LinkButton(); emailBtn.label = 'Email Question'; emailBtn.addEventListener("click", emailPopup); newColumn6.itemRenderer = ????; colarray.push(newColumn6); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6020 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
|
|
Re: Building Datagrid Using Actionscript> Yes - I thought it would be easy to do in Actionscript too since I know the MXML side > of it. But it isn't coming together. :( Do you know of an example? (And thanks for > the quick response!) You're welcome! Unfortunately, I don't have any examples of my own, but this might help: http://haugland.ca/entries/general/using-as3-to-build-an-itemrenderer-for-a-tilelist-in-flex-2 Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more informat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6021 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
|
|
Re: Building Datagrid Using ActionscriptTurned out to be simple once I got over the fact that I would have to create a new component to handle the link button such as the article you supplied me said too. I just thought it should be easier than that. :) Thank you for convincing me to bite the bullet and create the component. Kim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:6022 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.37 |
| Free embeddable forum powered by Nabble | Forum Help |