[flexcoders] Datagrid sorting and ArrayCollection Filtering
Hello, I am having a problem related to sorting by a certain column and applying a Filter on an array collection. I'm not sure if this is a bug or not. I have an array collection that has a filter function associated to it. I have a datagrid that is binded to this array collection. Two of the datagrid columns however do not have a dataField defined, but they do have a labelFunction since they are a combination of some of the properties in the arraycollection. The problem is if I am sorting by the second data grid column that doesn't have a dataField defined, and then reissue a refresh() on the array collection, the sort arrow appears next to the wrong columns. See the attached example for behavior: I have a data grid and I click on the header to sort by "Name and grade" column. I then hit the "Apply Filter By name button" and now the sort arrow appears next to the "Name and Age" column. Thanks http://www.adobe.com/2006/mxml"; layout="vertical" creationComplete="{students.filterFunction = doFilter;}">
[flexcoders] Re: ImageSnapshot and PopUpManager
Thanks it worked. This is what I ended up doing private function captureImage() : void { var sn : ImageSnapshot; sn = ImageSnapshot.captureImage(this.systemManager.getTopLevelRoot(),100,new PNGEncoder()); var file:FileReference = new FileReference(); file.save(sn.data, "captured.png"); } --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Use systemManager instead of application. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of shafram > Sent: Monday, October 26, 2009 1:31 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] ImageSnapshot and PopUpManager > > > > Hi, I have an application that has several windows that were created using > the PopUpManager. I would like the user to be able to take a screenshot of > the the app so I am using the ImageSnapshot class. > > The application is being captured but none of the pop up windows are showing > up. Is there any way I can achieve this? > > I have attached an example of the problem. You will need to ensure that the > project is set to require Flash Player Version 10.0 in the flex compiler > options. > > To see the problem click on 'Pop up box' then click on 'Capture Image' > > Thanks in advance > > > http://www.adobe.com/2006/mxml"; layout="absolute"> > > > > > > > > > > ! ; > > > > > > > >
[flexcoders] ImageSnapshot and PopUpManager
Hi, I have an application that has several windows that were created using the PopUpManager. I would like the user to be able to take a screenshot of the the app so I am using the ImageSnapshot class. The application is being captured but none of the pop up windows are showing up. Is there any way I can achieve this? I have attached an example of the problem. You will need to ensure that the project is set to require Flash Player Version 10.0 in the flex compiler options. To see the problem click on 'Pop up box' then click on 'Capture Image' Thanks in advance http://www.adobe.com/2006/mxml"; layout="absolute">
[flexcoders] using as an xaxis label on a bar chart
Hi, I have a string '' and I need to have the entire string be used as an x-axis label and in the datatip on a bar chart (including the ). I can't see to be able to do this. Is there any way I can have this entire string displayed?
[flexcoders] Hand Cursor and datagrid
I have a datagrid and for each row I would like to show the hand cursor (to indicate to users that it is clickable). I've tried setting useHandCursor and buttonMode to true on the datagrid but that makes the entire datagrid show the hand cursor. Has anyone done this before? Is there a way to do this?
[flexcoders] Re: HTTPService Busy Cursor
Thanks. But this example assumes that I have full control over when I want to show and hide the cursors. The HTTPService, however will show and hide the busy cursor for me automatically (hence the property showBusyCursor). I guess I would have to set that property to false and then manually show the cursor before I issue my send and then in my result or fault methods I would have to hide the cursor. I was just hoping that there was a cleaner and more general solution to this. --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > Check out > http://www.switchonthecode.com/tutorials/flex-custom-cursor-tutorial > > > --- In flexcoders@yahoogroups.com, "shafram" wrote: > > > > I am using the mx:HTTPService from Flex and it has a showBusyCursor > > property that I set to true: > > > > > showBusyCursor="true" > > result="handleResult(event)" > > fault="handleFault(event)" > > method="GET" > > url="http://someurl/"; > > /> > > > > When the HttpService is issued a send request, the busy cursor is > > shown as an animated clock. I would like to use a custom gif. Is there > > any easy way to do this? > > > > Thanks > > >
[flexcoders] HTTPService Busy Cursor
I am using the mx:HTTPService from Flex and it has a showBusyCursor property that I set to true: http://someurl/"; /> When the HttpService is issued a send request, the busy cursor is shown as an animated clock. I would like to use a custom gif. Is there any easy way to do this? Thanks
[flexcoders] Re: WordWrapping a Label
Thanks actually I found it, you have to play with the leading property --- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote: > > I have not tried... but, it appears the styles on this page > http://livedocs.adobe.com/flex/3/langref/mx/controls/Text.html should > get you where you want to go. > > hth > Scott > > -- > Scott Melby > Founder, Fast Lane Software LLC > http://www.fastlanesw.com > > > shafram wrote: > > Thanks for the responses. As a follow on question, is there a way to > > control the spacing in between the lines (for example single space, > > double space) When the word wraps there is too much of a gap in > > between the lines, and it would be nice to control that spacing. > > > > Thanks > > > > > > --- In flexcoders@yahoogroups.com, Scott Melby wrote: > > > >> Make sure you set the width property, or the text will not wrap. > >> > >> hth > >> Scott > >> > >> -- > >> Scott Melby > >> Founder, Fast Lane Software LLC > >> http://www.fastlanesw.com > >> > >> > >> Gordon Smith wrote: > >> > >>> You need to use instead of . > >>> > >>> > >>> > >>> Gordon Smith > >>> > >>> Adobe Flex SDK Team > >>> > >>> > >>> > >>> > >>> > >>> From: flexcoders@yahoogroups.com > >>> > > [mailto:[EMAIL PROTECTED] On > > > >>> Behalf Of shafram > >>> Sent: Tuesday, August 12, 2008 5:43 PM > >>> To: flexcoders@yahoogroups.com > >>> Subject: [flexcoders] WordWrapping a Label > >>> > >>> > >>> > >>> Hi is there a way to Word wrap a label? I know about the truncateToFit > >>> property but that's not exactly what I'm looking for. > >>> > >>> Thanks > >>> > >>> > >>> > >>> > >>> > >>> > > > > > > > > >
[flexcoders] Re: WordWrapping a Label
Thanks for the responses. As a follow on question, is there a way to control the spacing in between the lines (for example single space, double space) When the word wraps there is too much of a gap in between the lines, and it would be nice to control that spacing. Thanks --- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote: > > Make sure you set the width property, or the text will not wrap. > > hth > Scott > > -- > Scott Melby > Founder, Fast Lane Software LLC > http://www.fastlanesw.com > > > Gordon Smith wrote: > > You need to use instead of . > > > > > > > > Gordon Smith > > > > Adobe Flex SDK Team > > > > > > > > ________ > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of shafram > > Sent: Tuesday, August 12, 2008 5:43 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] WordWrapping a Label > > > > > > > > Hi is there a way to Word wrap a label? I know about the truncateToFit > > property but that's not exactly what I'm looking for. > > > > Thanks > > > > > > > > > > >
[flexcoders] WordWrapping a Label
Hi is there a way to Word wrap a label? I know about the truncateToFit property but that's not exactly what I'm looking for. Thanks
[flexcoders] Re: DataTip targets
Hi thanks, yes I've set showDataTipTargets="true", but this will only cause the targets to appear when the user mouses over the graph. Is there a way to always have it appear? And is it possible to have it appear for bars that don't render in the graph? I'm trying to find the tip renderer for the ColumnSeries but I don't see it. Can you give an example? Thanks. --- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> wrote: > > Have you tried showDataTipTargets="true" ? > > At the series level, you can also customize the tip renderer: > > stroke="{tipStroke}" > fill="{tipFill}" > radius="4" itemRenderer="mx.charts.renderers.CircleItemRenderer" > > > On Thu, Jul 17, 2008 at 2:19 PM, shafram <[EMAIL PROTECTED]> wrote: > > Hi, I've been searching around for any example to do this but I > > haven't found anything so far > > > > I have a Cartesian chart with a column series. Some of the bars don't > > render on the chart because their values are very small. However > > showing the datatips for these bars is still useful. The only problem > > is that there is no indication that there's a datatip unless the user > > rolls their mouse over the graph where they may see a datatip for one > > of the very small bars. > > > > My question is, is it possible to always show just the data tip target > > for the bars that don't render on the graph? > > > > Thanks > > > > >
[flexcoders] DataTip targets
Hi, I've been searching around for any example to do this but I haven't found anything so far I have a Cartesian chart with a column series. Some of the bars don't render on the chart because their values are very small. However showing the datatips for these bars is still useful. The only problem is that there is no indication that there's a datatip unless the user rolls their mouse over the graph where they may see a datatip for one of the very small bars. My question is, is it possible to always show just the data tip target for the bars that don't render on the graph? Thanks
[flexcoders] Re: Wierd behaviour with selectedItem on Datagrid
Thanks for the workarounds but the problem still exists in Flex 2 even after setting the selectedItem using the selectedIndex. This is also a bug in Flex 3 but at least there seems a workaround. --- In flexcoders@yahoogroups.com, "Santiago Gonzales" <[EMAIL PROTECTED]> wrote: > > I'm also not sure why this happens, but if you change the code in > function cc of dg.selectedItem = array[3] to dg.selectedIndex = 3 it > works. > > --- In flexcoders@yahoogroups.com, "jmfillman" wrote: > > > > Not sure if this is a bug, kind of looks like it, but you can prevent > > this by doing this: > > > > > itemClick="dg.selectedItem = array[dg.selectedIndex]; ck(event)"> > > > > > > --- In flexcoders@yahoogroups.com, "shafram" wrote: > > > > > > Hello I am encountering a strange problem when I try to select an > > item > > > after an initial sort order has been provided. > > > > > > In this example, I have 5 items with all the same count. My initial > > > sorting is on the count field. > > > Once the initial sort has been set, I programmatically select the > > 4th > > > item in my array which is Letter "D". If I then try to click on > > Letter > > > "A" which is right above "D", The alert box will display "D" > > not "A" in > > > Flex 3. > > > > > > In flex 2 the event.target.selectedItem is null and an exception is > > > thrown. > > > > > > Here is the source code. Am I doing something wrong or is this a > > bug in > > > flex? > > > > > > > > > http://www.adobe.com/2006/mxml"; > > > layout="absolute" creationComplete="cc()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > dataField="count"/> > > > > > > > > > > > > > > > > > > > > > > > >
[flexcoders] Wierd behaviour with selectedItem on Datagrid
Hello I am encountering a strange problem when I try to select an item after an initial sort order has been provided. In this example, I have 5 items with all the same count. My initial sorting is on the count field. Once the initial sort has been set, I programmatically select the 4th item in my array which is Letter "D". If I then try to click on Letter "A" which is right above "D", The alert box will display "D" not "A" in Flex 3. In flex 2 the event.target.selectedItem is null and an exception is thrown. Here is the source code. Am I doing something wrong or is this a bug in flex? http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="cc()">
[flexcoders] Re: Cairngorm and Menu Object
Thanks, I decided to create a command class that will create the arrays required for a Menu and then called a callback function (that was passed to my Command), to actually popup the menu inside my mxml. --- In flexcoders@yahoogroups.com, "Todd" <[EMAIL PROTECTED]> wrote: > > Yeah, this is where Cairngorm gets a little dicey in my eyes. For > displaying popup windows, I call a command that does it's magic and > then sets a property on a model that's being watched and then calls a > function to display a PopUP Window. > > I've read that some guys pass call-back functions coded into the view > into the command that the command calls back with the appropriate > data. I've never personally done this as my watcher works pretty well. > > It's a pain to set up, but once you go through the process once, you > are left with a tidy view, and all your code in a command. > > Look up something called SimpleObserve, it's bascially a > ChangeWatcher, but it works well for watching model properties and > calling functions when the properties change. > > There is a Cairngorm Flex list however, I think it's called > Cairgngrom Docs on Yahoo groups here that might give you some better > feedback. > > > > --- In flexcoders@yahoogroups.com, "shafram" wrote: > > > > Hi, I have a catesian chart that allows you to click on a single bar > > which will display a Menu object. Now inside my mxml that contains > > this chart there is an itemClick event and in there is where I create > > my menu and do a menu.show(). In order to build this menu there is > > several business logic involved depending on which bar was selected > > and so on... > > > > Is there any better approach to creating the Menu for instance in a > > Command class? Any feedback would be appreciated. > > >
[flexcoders] Cairngorm and Menu Object
Hi, I have a catesian chart that allows you to click on a single bar which will display a Menu object. Now inside my mxml that contains this chart there is an itemClick event and in there is where I create my menu and do a menu.show(). In order to build this menu there is several business logic involved depending on which bar was selected and so on... Is there any better approach to creating the Menu for instance in a Command class? Any feedback would be appreciated.
[flexcoders] Setting canDropLabels=true may drop all labels on a cartesian chart
Hi, I have a Cartesian chart and I have the horizontal axis renderer set to canDropLabels to true. I am reading my category axis from a file and in certain cases when I resize my window, all labels seem to be dropped. If I set my category axis from inside my flex app instead of relying on the xml file, it seems to drop labels just fine. Here is some sample code showing the problem I've tried this in flex 2.01 hotfix 3. Is there something I'm doing wrong? Is this a bug in flex? Thanks. test.xml 123 123 143 133 123 153 173 133 123 153 173 143 123 173 123 153 173 133 123 153 173 143 0 0 And the application http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="httpService.send()">
[flexcoders] Re: ComboBox itemRenderer scrolling Bug?
Has anyone resolved this issue? I'm having a similar problem where I have different images in a datagrid column based on the data and as soon as I start scrolling, the images start moving around (i.e the image that was supposed to be displayed in row 1 with row 1's data is now displayed in row 2 etc) --- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]> wrote: > > Is this a bug then?... can somebody tell me if it's been reported on the > beta list? > > Thanks, > > Brendan > > > > On 6/20/06, indy_nagpal <[EMAIL PROTECTED]> wrote: > > > > Hi Brendon... I came across exactly the same weirdness when using an > > itemrenderer that displayed different images in a datagrid column > > based on specific values. > > > > No matter what I do, I continue to get the same weird behaviour where > > if you scroll down, the values in the rendered column start moving > > around... > > > > I picked up the example code from: > > http://www.iepl.net/dataGridItemRendererSample/dgItemRendererSample.html > > and reduced the height of the datagrid so that scrolling is required. > > And this weird behaviour occurs there as well. > > > > This unexpected behaviour is not listed as a known issue at > > http://labs.adobe.com/wiki/index.php/Flex:Known_Issues#Item_Renderers. > > > > So I don't know if it is bug or it is something that all of us are > > doing incorrectly. > > > > Indy > > --- In flexcoders@yahoogroups.com , "Brendan > > Meutzner" > > > > wrote: > > > > > > Sorry if this is a repost, but i didn't see it showing up after being > > > posted this morning.. > > > > > > > > > > > > Hi All, > > > > > > I came across some funky behaviour when using a ComboBox as an > > > itemRenderer for a DataGrid. I've posted the issue at > > > http://www.visualconcepts.ca/flex2/comboboxrenderer/Tester.html. To > > > replicated just change one of the combobox items, and then move your > > > mouse above and below the datagrid. For additional funkiness, go > > > focus on one of the numbers (NumericStepper renderer used) and move > > > the mouse above and below the datagrid to see them disappear as the > > > rows are redrawn... interesting... > > > > > > Brendan > > > > > > > > > >
[flexcoders] Controling item selected in a datagrid
Hello, I have a datagrid displaying data, but my last column is suppose to display an image and when this image is clicked, I'm suppose to popup a menu that will allow the user to change the color of the text in that row (kind of like marking that row as read). As such whenever the user clicks on that image, I simply want to catch the item click event without actually displaying that row as selected. For example, the user selects a row by clicking on any of the columns displaying text and that row becomes highlighted. Then on another row they click on the column displaying the image to popup the menu. I don't want to have that row selected, I want to keep the previous row selected. I've tried to set the datagrid's selected item back to the previous row, if I see that the column selected was the image, but I'm hoping that there's a better solution since you can clearly see that the previous row is being re-selected. Thanks in advance.