just in! Peter Ent has a new series on ItemEditors http://www.adobe.com/devnet/flex/articles/itemeditors_pt1.html
This follows on his series on ItemRenderers. Good stuffs! Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Fri, Jan 23, 2009 at 4:59 PM, Douglas Knudsen <[email protected]>wrote: > may need to play the override set data() game. CheckBox is notorious for > being a real bugger in a DG even though it is designated a dropin renderer. > Might need to see more of what you are doing though to see. Alex Harui from > Adobe has a really great blog and has a section on ItemRenderers: > http://blogs.adobe.com/aharui/item_renderers/ Might hit this topic > again in a meeting too! > > One thing to note, unless you really need to do otherwise, in a HTTPService > use resultFormat="e4x" This uses the e4x libraries for searching and such > and result.node.node...node returns a XMLListCollection. the default value > for resultFormat is Object, yeilding a ArrayCollection of Objects which can > work certainly, just not as performant. > > DK > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > > On Fri, Jan 23, 2009 at 11:04 AM, Frank Griffin <[email protected]>wrote: > >> Douglas, >> >> >> >> XML or XMLListCollection, I just didn't know any better. ;-) I will do >> some reading on XMLListCollection. >> >> >> >> I changed the combobox out for just a standard DataGrid Column and I get >> the data I was expecting to see (true for active records and false for >> non-active records). It would seem that I am getting the proper node. >> >> >> >> Frank >> >> >> ------------------------------ >> >> *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Douglas >> Knudsen >> *Sent:* Friday, January 23, 2009 10:46 AM >> >> *To:* [email protected] >> *Subject:* Re: [AFFUG Discuss] Checkbox in a DataGrid Column >> >> >> >> An ArrayCollection of XML? Curious why not a XMLListCollection. Suspect >> a issue there. Either way, you might not be getting the proper node of XML >> in there. Sounds like debugging time. Use the debugger or for old skool >> dirty, change your CheckBox to a Lable and bind the text property to >> data.active see what is displayed. >> >> DK >> >> Douglas Knudsen >> http://www.cubicleman.com >> this is my signature, like it? >> >> On Fri, Jan 23, 2009 at 9:45 AM, Frank Griffin <[email protected]> >> wrote: >> >> Hello Jay, >> >> >> >> It is a string containing either "true" or "false". >> >> >> >> Thanks! >> >> >> >> >> >> >> >> My XML file: >> >> >> >> <charts> >> >> <paramBack1>All</paramBack1> >> >> <chart> >> >> <Id>1</Id> >> >> <name>Gross Purchases - YTD</name> >> >> <description>Shows the Gross Purchases - YTD</description> >> >> <category>Operational</category> >> >> <active>true</active> >> >> <seq>1</seq> >> >> <series>Gross PO Amount</series> >> >> <transDate>Custom</transDate> >> >> <dateFrom>01/01/2009</dateFrom> >> >> <dateTo>01/08/2009</dateTo> >> >> <categoryAxis>Field</categoryAxis> >> >> <categoryAxisField>Division</categoryAxisField> >> >> </chart> >> >> <chart> >> >> <Id>2</Id> >> >> <name>Net Purchases - YTD</name> >> >> <description>Shows the Net Purchases - YTD</description> >> >> <category>Operational</category> >> >> <active>false</active> >> >> <seq>2</seq> >> >> <series>Net PO Amount</series> >> >> <transDate>All Dates</transDate> >> >> <dateFrom>01/15/2009</dateFrom> >> >> <dateTo>01/19/2009</dateTo> >> >> <categoryAxis>Days</categoryAxis> >> >> <categoryAxisField/> >> >> </chart> >> >> <chart> >> ------------------------------ >> >> *From:* [email protected] [mailto:[email protected]] *On Behalf Of * >> [email protected] >> *Sent:* Friday, January 23, 2009 9:21 AM >> *To:* [email protected] >> *Subject:* Re: [AFFUG Discuss] Checkbox in a DataGrid Column >> >> >> >> >> Is the field "active" in dataCollection a string or Boolean. If it is a >> string, does it contain true or false as values(case is important). If it >> is a boolean, the line should be changed as >> >> <mx:CheckBox selected="{data.active}"/> >> >> Jay Jayaraman >> Central Billing Services >> Financial Management and Planning >> (404) 498-8453 (W) >> (404) 273-7131 (C) >> >> *"Frank Griffin" <[email protected]>* >> Sent by: [email protected] >> >> 01/23/2009 09:12 AM >> >> Please respond to >> [email protected] >> >> To >> >> <[email protected]> >> >> cc >> >> >> >> Subject >> >> [AFFUG Discuss] Checkbox in a DataGrid Column >> >> >> >> >> >> >> >> >> >> >> I am new to Flex and I am having problems making my CheckBox work in a >> DataGrid Column. I had this working when I was not using a bound XML array >> but now that I have changed to a bound VAR my CheckBox no longer works. I >> have both used a "selected=" statement and not used it with the same result. >> >> Any guidance would be much appreciated! >> >> Thanks, >> >> Frank >> >> >> My array: >> >> [*Bindable*] >> *private* *var* dataCollection:ArrayCollection= *new*ArrayCollection(); >> >> >> >> My DataGrid with CheckBox: >> >> <mx:DataGrid id="dG1" >> dataProvider="{dataCollection}" >> change="dataGridChange()" width="100%"> >> <mx:columns> >> <mx:DataGridColumn dataField="name" headerText="Name" width=" >> 225" /> >> <mx:DataGridColumn dataField="active" headerText="Active" >> width="50" textAlign="center"> >> <mx:itemRenderer> >> <mx:Component> >> <mx:CheckBox selected="{data.active == *'true'*}"/> >> </mx:Component> >> </mx:itemRenderer> >> </mx:DataGridColumn> >> <mx:DataGridColumn dataField="seq" headerText="Seq#" width=" >> 40" /> >> </mx:columns> >> </mx:DataGrid> >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink <http://www.fusionlink.com/> >> ------------------------------------------------------------- >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink <http://www.fusionlink.com> >> ------------------------------------------------------------- >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink <http://www.fusionlink.com> >> ------------------------------------------------------------- >> >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink <http://www.fusionlink.com> >> ------------------------------------------------------------- >> > >
