[flexcoders] Excluding lockedRowCount number of rows from sorting.
Hi All, How can I exclude the number of rows from sorting operation. Lets say if I have 2 rows locked in my AdvancedDataGrid then while performing sort operation it gets shuffled. I want them to be fixed as top row only. Any help would be appreciated. Thanks in advance, Kuldeep
[flexcoders] Multiselect dropdown Menu
Hi All, I want to have a menu which allows multiple selection without closing/hiding it. While looking into the properties of the Menu control there is a property which says allowMultipleSelection but its not working. Is this possible? Any reply or pointers in this direction is appreciated. Thanks in advance, Kuldeep
[flexcoders] Re: Script Time out Issue
HI Tracy, Thanks for the reply, As I said, I am using modules and I guess the latter swf overrides the script execution time. http://bugs.adobe.com/jira/browse/FP-243 I tried it manually and it allows for 15 secs only. I am not sure how to overcome the issue. Please let me know if u have more details on it. Thanks n Regards, Kuldeep --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > It is a property on Application, scriptTimeout, I believe. I seem to recall > reading that the timeout message always says 15 seconds. > > > > Note, 60 seconds is a hard, maximum. You cannot increase beyond that. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Kuldeep Atil > Sent: Tuesday, April 14, 2009 12:42 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Script Time out Issue > > > > > > > > > Hi All, > > I am facing an issue of script time out while printing multiple pages. I get > #1502 error which says 15 seconds script time limit. The livedocs on adobe > site says the default script time out is 60 secs. I am not sure how to > increase that. > > Any help would be appreciated. > Thanks, > Kuldeep >
[flexcoders] Script Time out Issue
Hi All, I am facing an issue of script time out while printing multiple pages. I get #1502 error which says 15 seconds script time limit. The livedocs on adobe site says the default script time out is 60 secs. I am not sure how to increase that. Any help would be appreciated. Thanks, Kuldeep
[flexcoders] Re: Problem with PrintAdvancedDataGrid in multipage print with groupedcolumns
Edited Line: The validnextpage thing always returns *true* and the loop continues until the script time gets exceeded. --- In flexcoders@yahoogroups.com, "Kuldeep Atil" wrote: > > Hi Everyone, > > I am facing a strange problem while printing with PrintAdvanceddatagrid when > there are groupedColumns in my original grid. > > The validnextpage thing always returns false and the loop continues until the > script time gets exceeded. > > Has anyone faced the same problem ? > Any help would be apprecidated. > > Thanks, > Kuldeep > Direct Contact > kuldeepantil at gmail dot com >
[flexcoders] Problem with PrintAdvancedDataGrid in multipage print with groupedcolumns
Hi Everyone, I am facing a strange problem while printing with PrintAdvanceddatagrid when there are groupedColumns in my original grid. The validnextpage thing always returns false and the loop continues until the script time gets exceeded. Has anyone faced the same problem ? Any help would be apprecidated. Thanks, Kuldeep Direct Contact kuldeepantil at gmail dot com
[flexcoders] Re: Datagrid not updating when dataProvider is changed.
Hi Sefi, For each column you have to specify the dataField property, which will be same as the object property that is in your arraycollection (myDP in your case). Regards, Kuldeep --- In flexcoders@yahoogroups.com, "Sefi Ninio" wrote: > > Hi all. > > I have a wierd situation, hopefully someone here can help. > > I have a DataGrid's dataprovider bound to an myDP ArrayCollection (it is > defined as [Bindable]). Each column in the DG has a labelFunction. > When I set the myDP values for the first time, everything is sweet, the data > is displayed correctly. > > When I update the myDP with new data, however, everything goes wrong. The > labelFunctions still get the stale data (from before the update), and so the > grid shows old data. > I verified the new data is updated to the DG's dataProvider (added a > listener to datagrid for CollectionEvent.COLLECTION_CHANGE - the new data is > updated in the DG dataprovider - checked in event's currentTarget). > > I can't understand why the dataprovider is updated and still the > labelFunction's item:Object contain old data... > > Any ideas anyone? > > Thanks, > Sefi >
[flexcoders] Chart DataTip Issue
Hi Friends, Hope everyone is fine :) I have an issue with the chart data tip, when i rollover an item, the data tip is shown and when i roll out it disappears, now what i want is, it should appear on rollover and should "not" disappear on roll out rather it should disappear on clicking on the data tip itself(latter is not a major one, main is it should not disappear itself on roll out) any help would be appreciable. Thanks and Regards, Kuldeep Atil
[flexcoders] Re: Numbers gone crazy: 5 - 4.8 = 0.2000000000000018 ?
well, u can use number.tofixed(2); --- In flexcoders@yahoogroups.com, "b_alen" <[EMAIL PROTECTED]> wrote: > > Here is how I arrived at this: > > var res:Number; > > var a:Number = 5; > var b:Number = 4.8; > > res = a - b; > trace("result: " + res + ", a: " + a + ", b: " + b); > > > The trace clearly shows that the value of a is 5, and the value of b > is 4.8. However the end result is clearly shown as 0.2018. > > Ok, I wanted to create a workaround where I will make sure that b is > really 4.8, and I used toPecision() method. > > var b1:String = b.toPrecision(2); > var b2:Number = Number(b1); > trace("b1: " + b1 + ", b2: " + b2); > > res = a - b2; > trace("result: " + res + ", b1: " + b1 + ", b2: " + b2); > > > Again with same result. b2 was traced as 4.8, but the end result still > showing 0.2018. As this can of course break all further > calculations I had to make sure result is really holding a value that > it should, based on all mathematical logic. So I did this: > > var res1:String = res.toPrecision(2); > res = Number(res1); > > trace("result: " + res); > > I got the expected result and the value of res is now 0.2. > > This is however very ugly, in case I'm not doing something wrong. > Every time we expect a floating point value in our calculation we have > to handle it to ensure the proper value is calculated, because what > Flash calculates is just wrong. Also, every intermediate calculation > has to be stored in a variable converted to String with toPrecision > and back to Number for future use. I really don't know how to properly > handle this and would appreciate any advice. Imagine the shopping cart > system with this sort of unpredictable behavior. > > For the end, here's one more weirdness: > > var c:Number = 488.8; > > trace("c: " + c + " , c.toPrec: " + c.toPrecision(2)); > > > Traces out c: 4.8, c.toPrec: 4.9e+2 > > > > > Thanks, > > Alen > > > > > > > > > > > var c:Number = 488.8; >
[flexcoders] AdvancedDataGrid + printing issue
Hi All, Is there any way(method) by which we can get the expanded nodes of advanceddatagrid while printing irrespective of the current (expanded) state of advanceddatagrid. i.e. lets say i a collapsed ADG but when i click print button the printed ADG must have all the nodes expanded without really expanding the nodes of ADG in my application. Thanks and Regards, Kuldeep Atil
[flexcoders] Problem with CustomTreeItemRenderer
Hi Everyone, I want to implement a custom treeitemrenderer in which i want some extra labels other than one default label... I have managed to add the UITextFields to the itemRenderer but it is creating some problem when the mouse rolls over the new added uitextfields... I have done a lot of googling for this... but i am not able to find one sample where they have added extra labels in that Is there any way achieve this checkout this page... and rollover the tree component... http://kuldeepantil.googlepages.com/TreeComponentExample.html Thanks and Regards, Kuldeep Atil