RE: [flexcoders] Grid alignment
Title: Message I'm using a grid for layout purposes and can't seem to get one of my items to align right. I basically want two items on the same row but one ofthem aligned right and one aligned left (labels). Hey John - this is what we'd call a "bad code smell" and is one of the MXML Refactorings we talk about. Rather than use a grid to achieve your layout (grids can be quite an expensive component for the layout manager to deal with) why don't you look into the component and play with widths, so that you can have the Spacer consume all the space necessary to push your rightmost component to the far right...? ie: Make sense ? Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies ofit, immediately. Please also note that while software systems havebeen used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened.
RE: [flexcoders] Grid alignment
Title: Message Ok coo Steven. I'll give that a look. I started to ask the question if using Grids was like using tables in html. Should I only use them for data layout (row duplication)? -Original Message-From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Saturday, February 12, 2005 3:27 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Grid alignment I'm using a grid for layout purposes and can't seem to get one of my items to align right. I basically want two items on the same row but one of them aligned right and one aligned left (labels). Hey John - this is what we'd call a "bad code smell" and is one of the MXML Refactorings we talk about. Rather than use a grid to achieve your layout (grids can be quite an expensive component for the layout manager to deal with) why don't you look into the component and play with widths, so that you can have the Spacer consume all the space necessary to push your rightmost component to the far right...? ie: Make sense ? Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened.
RE: [flexcoders] Grid alignment
Title: Message Hi John, Try and avoid using the grid to do HTML like layout tricks; instead, think a little harder about how you can achieve your layout with the other layout containers and with spacers. In "Developing Rich Clients with Macromedia Flex" (the flex book)we have a section on MXML Refactorings ... in fact, I just remember that I did a presentation on some of this stuff at IBM in Amsterdam, and it's up as a Breeze presentation here: http://www.richinternetapps.com/archives/000100.html Take a look through that presentation... Best, Steven From: John C. Bland II [mailto:[EMAIL PROTECTED] Sent: 12 February 2005 16:56To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Grid alignment Ok coo Steven. I'll give that a look. I started to ask the question if using Grids was like using tables in html. Should I only use them for data layout (row duplication)? -Original Message-From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Saturday, February 12, 2005 3:27 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Grid alignment I'm using a grid for layout purposes and can't seem to get one of my items to align right. I basically want two items on the same row but one of them aligned right and one aligned left (labels). Hey John - this is what we'd call a "bad code smell" and is one of the MXML Refactorings we talk about. Rather than use a grid to achieve your layout (grids can be quite an expensive component for the layout manager to deal with) why don't you look into the component and play with widths, so that you can have the Spacer consume all the space necessaryto push your rightmost component to the far right...? ie: Make sense ? Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibilityfor any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. ---Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.853 / Virus Database: 581 - Release Date: 01/02/2005
RE: [flexcoders] Grid alignment
Title: Message Sounds good Senior Webster. :-) I'll look @ it right now and will definitely try harder on my layouts. Thx! -Original Message-From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Saturday, February 12, 2005 10:01 AMTo: flexcoders@yahoogroups.comSubject:RE: [flexcoders] Grid alignment Hi John, Try and avoid using the grid to do HTML like layout tricks; instead, think a little harder about how you can achieve your layout with the other layout containers and with spacers. In "Developing Rich Clients with Macromedia Flex" (the flex book) we have a section on MXML Refactorings ... in fact, I just remember that I did a presentation on some of this stuff at IBM in Amsterdam, and it's up as a Breeze presentation here: http://www.richinternetapps.com/archives/000100.html Take a look through that presentation... Best, Steven From: John C. Bland II [mailto:[EMAIL PROTECTED] Sent: 12 February 2005 16:56To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Grid alignment Ok coo Steven. I'll give that a look. I started to ask the question if using Grids was like using tables in html. Should I only use them for data layout (row duplication)? -Original Message-From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Saturday, February 12, 2005 3:27 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Grid alignment I'm using a grid for layout purposes and can't seem to get one of my items to align right. I basically want two items on the same row but one of them aligned right and one aligned left (labels). Hey John - this is what we'd call a "bad code smell" and is one of the MXML Refactorings we talk about. Rather than use a grid to achieve your layout (grids can be quite an expensive component for the layout manager to deal with) why don't you look into the component and play with widths, so that you can have the Spacer consume all the space necessary to push your rightmost component to the far right...? ie: Make sense ? Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. ---Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.853 / Virus Database: 581 - Release Date: 01/02/2005
RE: [flexcoders] Grid Header ContextMenu
Hi, We only support context-menus at application level only, not to any children of application or to nested objects. However you can add context-menu items to TextInput, TextArea or anything that uses a Flash TextField. Hopefully, in future context-menu would be supported for nested objects. But there is workaround, you can add/remove context menu items to main context menu depending upon where mouse pointer isSo if user right clicks on header, you can detect that mouse pointer is on datagrid header and add context menu items... Does it make sense? -abdul -Original Message- From: viraf_bankwalla [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 5:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grid Header ContextMenu Hi, How do I create a context menu for my Header in a grid? I have a HeaderRenderer and tried to cast it to a MovieObject and set the menu attribute, however this did not work. Thanks. - viraf Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Grid Creation from XML
> Is it possible to create GridRows and GridItems via Actionscript? Yes, you can see the following sample code. > I have a Grid that I am using RowSpan and Colspan with the GridItem's. > I am curious if there is any way to Create this Grid dynamically from > XML data? Or is there a way that i can achieve Colspan type formatting > in a DataGrid? Grid from XML will not be generated automatically, but you can write your logic to parse XML and add GridRow/GridItem as required. No, DataGrid doesn't support ColSpan type formatting, but can it be achieved by writing custom row renderer? ##DynamicGrid.mxml## http://www.macromedia.com/2003/mxml"; creationComplete="createGrid()"> -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jae Hess Sent: Saturday, May 21, 2005 2:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grid Creation from XML Is it possible to create GridRows and GridItems via Actionscript? I have a Grid that i am using RowSpan and Colspan with the GridItem's. I am curious if there is any way to Create this Grid dynamically from XML data? Or is there a way that i can achieve Colspan type formatting in a DataGrid? Thanks in Advance -Jae Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Grid Creation from XML
On 5/21/05, Jae Hess <[EMAIL PROTECTED]> wrote: > I have a Grid that i am using RowSpan and Colspan with the GridItem's. > I am curious if there is any way to Create this Grid dynamically from > XML data? Try using a Repeater and putting GridItem's inside that. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] grid does not occupy all of TabNavigator container ?
I don't have a perfect solution yet, but the DataGrid is getting clipped by the Application container, which extends Box. You can set a width="700" on your Positions.mxml Application container and you will see the whole DataGrid. However, this may not be perfect since you might want a percentage value there. I think that I read something one that Loaded apps default to around 400 wide. I will try to get see if I can get a non-hardcoded width working. BTW: Is there a reason you are using Loader instead of just doing this: -James > > > I will pay $20 to the first person who can solve this problem !! > > Please look at this code: > http://www.geocities.com/sanjayd.rm/freelance/positionsRepoRates.zip > > when you bring up the application using via 'Main.mxml', > the grid in the 'Positions.mxml' app does not show all the columns ! > The last column is clipped..any idea why ? > Thanks in advance. Sanjay. > > I will pay $20 to the first person who can solve this problem !! > > > > > > > Yahoo! Groups Links > > > > > > > > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/