RE: [flexcoders] Datagrid question
Almost nothing generated at instantiation: of a renderer is meaningful. Either you know what it is because you set it at design time, or it is unpredictable, depending on the vagaries of the List functioning. Remember that renderers are recycled and are just a temporary view of the underlying data. Imagine I have two windows in my house and between them is a television. How do I find out what is on the tv, when it is raining outside? What are you trying to do? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of elevight Sent: Monday, April 20, 2009 2:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid question Imagine a mx:DataGrid with 3 columns. The first and second columns are people's first and last names, respectively. The third column is a custom MXML component that displays a button with its 'label' property set to a random number generated within the component; this number is generated during its instantiation. My objective now is to get the value of that button's label. How can I get it? The only way I can think of is to somehow be able to get a reference to that component in the third column, then I can access the component's properties. Can someone show me how I can do this in Actionscript? Thanks.
RE: [flexcoders] datagrid question
On click, use the value from the ProductID property in the selectedItem to build your RO method arguments. Then make the call. In the result handler, process the result data as you need. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Gray Sent: Tuesday, August 05, 2008 5:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid question I have a datagrid that I populate with some data. ProductID, Name, Description I would like it so when a user clicks on one of the datagrid rows it fires a RemoteObject that queries a CFC with the ProductID. Then take the RemoteObjects results and display the data returned. How do I get the datagrid to pass the ProductID to the RemoteObject?
Re: [flexcoders] DataGrid question
Would defining a new methiod, then calling super.dataGrid() work? Im starting to get into the Flex side of AS3, right now all I have is the OOP side of flash. So I don't know the method calls yet. :P -Joe On Dec 21, 2007 10:42 AM, djhatrick [EMAIL PROTECTED] wrote: I asked a while back and didn't see an example of how to override the method that selects an item in a datagrid, or for mouseovers for that reason. I am using a datagrid in an application, and it's a dummy datagrid just shows data - I don't want to select anything or highlight anything. Any help? Thanks, Patrick
Re: [flexcoders] Datagrid question
From the looks of it. Row1 and Row2 are entirely different rows with different data because of your 4th and 5th column. They have the same data but it doesn't mean the same. It's like saying Row1 is an Apple and Row2 is an Orange. Even though they're both sweet, we simply cannot suppress them to become 1 fruit. VVV-2 wrote: Is it possible to suppress some of the data in certain rows in a datagrid. For Example: In a datagrid with 5 columns and 3 rows If Row1 has data, A, B, C, D, E Row2 has data, A, B, C, F, G Row3 has data X, y, Z, F, K Is it possible to suppress A,B,C from row 2 since, the data is the same from row 1 and 2. Thanks for your help VVV -- View this message in context: http://www.nabble.com/Datagrid-question-tf3253619.html#a9045243 Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Datagrid question
You will have to code an ActionScript funtion/class to do this filtering for you and then pass the data to the grid for display. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of VVV Sent: Monday, February 19, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid question Is it possible to suppress some of the data in certain rows in a datagrid. For Example: In a datagrid with 5 columns and 3 rows If Row1 has data, A, B, C, D, E Row2 has data, A, B, C, F, G Row3 has data X, y, Z, F, K Is it possible to suppress A,B,C from row 2 since, the data is the same from row 1 and 2. Thanks for your help VVV -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] DataGrid question
Add newmodel.annotation. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Kai Pradel Sent: Monday, November 14, 2005 8:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid question I am new to Flex and am having a hell of a time figuring out how to use the addItem method to add data to a DataGrid. I hope someone can give me a pointer. Here is what I am trying to do: I have defined two models: one with static content and one that is bound to text input fields that are inside of a panel. When the button is pressed, I want to add the entered data to the samplegrid DataGrid. So far it looks like it is adding *something* to the DataGrid since I can see the scrollbars appear but nothing shows up in the grid itself. What am I doing wrong? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ public function makethechange():Void { samplegrid.addItem(newmodel); } ]] /mx:Script mx:Model id=newmodel annotation name{text1.text}/name time{text2.text}/time comment{text3.text}/comment /annotation /mx:Model mx:Model id=mymodel annotation nameMy Name/name timeMy Time/time commentThis is my comment/comment /annotation annotation nameMy Name/name timeMy Time/time commentThis is my comment/comment /annotation annotation nameMy Name/name timeMy Time/time commentThis is my comment/comment /annotation /mx:Model mx:HBox mx:Panel width=300 title=Test Grid mx:DataGrid id=samplegrid width=100% height=100% dataProvider={ mymodel.annotation }/ /mx:Panel mx:Panel width=300 title=Data Input mx:TextInput id=text1 / mx:TextInput id=text2 / mx:TextInput id=text3 / mx:Button id=adbutton label=Add Text click=makethechange();/ /mx:Panel /mx:HBox /mx:Application Thanks, Kai -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.