[flexcoders] Re: Does LCDS support replication of runtime created Destination ?
Now , I assume that LCDS does not support replication of run time created Destination. Regards, Dharmendra --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > Hi All , > I have been working on LCDS clustering and I could successfully got > static destination clustering working .. > > But I need to Clustering/Replication for runtime created Destination. > > Does LCDS support it ? > > > Regards, > Dharmendra >
[flexcoders] Does LCDS support replication of runtime created Destination ?
Hi All , I have been working on LCDS clustering and I could successfully got static destination clustering working .. But I need to Clustering/Replication for runtime created Destination. Does LCDS support it ? Regards, Dharmendra
[flexcoders] DataService Destination Clustering is not working
Hi All , We are trying to get clustering configured for our application so that DataService's Destination keep serving the cleint in case of any server failure . We are using F5 hardware load balancer. We have set up a default-cluster, using tcp and while creating DataService Destination we are setting cluster ID as follows 1) . DataNetworkSettings ns = new DataNetworkSettings(); ns.setPagingEnabled("false"); ns.setClusterId("default-cluster") 2) service-config.xml 3) jgroup-tcp.xml - First 3) jgroup-tcp.xml - Seond I am using Jboss4.2.2 GA and LCDS2.6.1 and we have licensed version of LCDS I am getting following message on JBoss console : - 04:26:15,296 INFO [STDOUT] [Flex]Cluster node from address 114.19.8.161:7800 joined the cluster for default-cluster 04:26:15,718 INFO [JBossCacheManager] Starting JBossManager 04:26:15,734 INFO [TreeCache] received the state (size=1024 bytes) 04:26:15,750 INFO [TreeCache] received the state (size=8192 bytes) 04:26:15,765 ERROR [TreeCache] failed setting transient state java.lang.ClassCastException: org.jboss.cache.loader.NodeData at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientSta te(StateTransferIntegrator_140.java:210) at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientSta te(StateTransferIntegrator_140.java:100) Am I missing anything ? During the testing when I bring down one of the jboss server, It immediately throws Destination does not exist error I will appreciate any help on this . Thanks Dharmendra
[flexcoders] Does it required to have Licenced Version of LCDS for Clustering
Hi, I am bit confused on LCDS products. I have downloaded trial version and trying to replicate DataService's Destination. Does it required to buy licensed veresion of LCDS to DataServive Destination replication ? My req is If serverA is down then user should immedialtely get connected to serverB with the same state as It was on serverA. Regards, Dharmendra
[flexcoders] Re: Memory Leak in DataServices based App ??
Hi Alex, >From allocation trace it seems that almost all loitering objects are being referrenced from referring to remoteObject.send() method and few are referencing to fill method of Data Service . I am clueless as what is wrong with my code.what is the best way to redesin these method. I can also see tons of string objects in loitering objects pane, don't know where are they coming from.. allocation trace says readObject method is holding references to these strings Regards, Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Make sure your scenario should be using loitering objects. As I explain in the blog article, many scenarios will get false results using loitering objects. > > If you look at the allocation traces for the objects in question, you can then consider how those created objects get released so they can be garbage collected. > > 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 Dharmendra Chauhan > Sent: Saturday, June 27, 2009 12:25 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Memory Leak in DataServices based App ?? > > > > > > I have gone throw your tutorial on you blog and I profiled my with. I could see so many loitering object hanging around , I evaluted them based upon the method suggetsed on your blog. > Potential Loitering Obejct which I could see is - > > * Objects > * Strings > On drill down , I found tons of obejct of following :- > AbstradeDataServies > NetConnetions > ManagedObjectPeoxy- It is refering to DataGridItemRenderer > > Worst part is they keep increasing everytime when I load the data and remove it. > > I have removed all my custom code and now app is very bare bone.Lately I though I could seek help from flexCoders. > > - Dharmendra > > > > > > > > > > > > > > > ! > > > > > > > > > > > --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: > > > > What does the memory profiler say? There's a "tutorial" on how to use it on my blog. > > > > 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 Dharmendra Chauhan > > Sent: Friday, June 26, 2009 10:21 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Memory Leak in DataServices based App ?? > > > > > > > > > > > > Hi All, > > > > I have very basic application which uses DataSerives over RTMP channel to populate dataGrid , I have not used any user defined component. > > > > This application has got LOAD data and Remove data Button j! ust to simulate the actual application > > > > What h! appens , when I click on LOAD data , It loads the data from server(JBOSS) then I Remove all the data and force the GC to run > > > > If I continuously keep loading and removing the data , memory goes up every time and after some times It reaches to threshold and finally crashes the Browser. > > > > In actual application as soon as user logs in a dedicated DS destination is created.. > > > > private function createDestination(destName:String):void{ > > var remoteServi! ce:RemoteObject = new RemoteObject("DestinationManager"); > > remoteService.addEventListener(ResultEvent.RESULT, resultHandler,false,0,true); > > var operation:AbstractOperation = remoteService.getOperation("createDestination"); > > operation.send(destName); > > var cs:ChannelSet = new ChannelSet(); > > var rtm! pChannel:RTMPChannel = ServerConfig.getChannel("my-rtmp") as RTMPChannel; > > cs.addChannel(rtmpChannel); > > ! ; tradeService = new DataService() ; > > ! ; & nbsp; tradeService.destination=destName; > > tradeService.channelSet = cs; > > } > > > > > > Now when user hits on Load data button to load the trade data ... > > > > public function loadData():void > > { > > var remoteService:RemoteObject = new RemoteObject("filterRemoteVO"); > > var operation:AbstractOperation = remoteService.getOperation("loadData"); > > tradeService.fill(tradeCollection); > > operation.send(rowData.t! ext ,GUIID); > > tradeList.dataProvider = tradeCollection; > > > > } > > > > > > Remove Dat! a hit I clean all the resource and released collection :- > ! > > > public function removeAll():void{ >
[flexcoders] Re: Memory Leak in DataServices based App ??
I have gone throw your tutorial on you blog and I profiled my with. I could see so many loitering object hanging around , I evaluted them based upon the method suggetsed on your blog. Potential Loitering Obejct which I could see is - * Objects * Strings On drill down , I found tons of obejct of following :- AbstradeDataServies NetConnetions ManagedObjectPeoxy- It is refering to DataGridItemRenderer Worst part is they keep increasing everytime when I load the data and remove it. I have removed all my custom code and now app is very bare bone.Lately I though I could seek help from flexCoders. - Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > What does the memory profiler say? There's a "tutorial" on how to use it on my blog. > > 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 Dharmendra Chauhan > Sent: Friday, June 26, 2009 10:21 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Memory Leak in DataServices based App ?? > > > > > > Hi All, > > I have very basic application which uses DataSerives over RTMP channel to populate dataGrid , I have not used any user defined component. > > This application has got LOAD data and Remove data Button just to simulate the actual application > > What happens , when I click on LOAD data , It loads the data from server(JBOSS) then I Remove all the data and force the GC to run > > If I continuously keep loading and removing the data , memory goes up every time and after some times It reaches to threshold and finally crashes the Browser. > > In actual application as soon as user logs in a dedicated DS destination is created.. > > private function createDestination(destName:String):void{ > var remoteServi! ce:RemoteObject = new RemoteObject("DestinationManager"); > remoteService.addEventListener(ResultEvent.RESULT, resultHandler,false,0,true); > var operation:AbstractOperation = remoteService.getOperation("createDestination"); > operation.send(destName); > var cs:ChannelSet = new ChannelSet(); > var rtmpChannel:RTMPChannel = ServerConfig.getChannel("my-rtmp") as RTMPChannel; > cs.addChannel(rtmpChannel); > ! ; tradeService = new DataService() ; > ! ; & nbsp;tradeService.destination=destName; > tradeService.channelSet = cs; > } > > > Now when user hits on Load data button to load the trade data ... > >public function loadData():void > { > var remoteService:RemoteObject = new RemoteObject("filterRemoteVO"); > var operation:AbstractOperation = remoteService.getOperation("loadData"); > tradeService.fill(tradeCollection); > operation.send(rowData.t! ext ,GUIID); > tradeList.dataProvider = tradeCollection; > > } > > > Remove Data hit I clean all the resource and released collection :- > > public function removeAll():void{ > if(tradeList.dataProvider){ > tradeCollection.source = new Array(); > tradeList.dataProvider.source = new Array(); > tradeList.dataProvider = null; > } >tradeService.release(); >&nb! sp; ; tradeService.releaseCollection(tradeCollection); > tradeService.channelSet.disconnectAll(); > tradeService.disconnect(); > tradeService.logout(); > System.gc(); > } > > Except these 3 function I don't have any code which could cause memory leak. > > I m using > > * LCDS 2.5 > * Flex 3.0 > * JBoss4.2 > > Please see the mxml file below , If possible please have a look at it , I might not be using dataSerice API correctly. > > I have been trying to solve this leak for last two week , I really need help from you guys. > My client has already evaluating other contemporary technology because of this memory issue. > > I have al! so created scalled down war file which can be deployed on any java application server.Just provide your emial Id , Iwill send that to you. > > Any help will greatly be appreciated > > Regards, > > Dam > MXML## > > > > http://www.adobe.com/2006/mxml"; layout="absolute" >
[flexcoders] Memory Leak in DataServices based App ??
Hi All, I have very basic application which uses DataSerives over RTMP channel to populate dataGrid , I have not used any user defined component. This application has got LOAD data and Remove data Button just to simulate the actual application What happens , when I click on LOAD data , It loads the data from server(JBOSS) then I Remove all the data and force the GC to run If I continuously keep loading and removing the data , memory goes up every time and after some times It reaches to threshold and finally crashes the Browser. In actual application as soon as user logs in a dedicated DS destination is created.. private function createDestination(destName:String):void{ var remoteService:RemoteObject = new RemoteObject("DestinationManager"); remoteService.addEventListener(ResultEvent.RESULT, resultHandler,false,0,true); var operation:AbstractOperation = remoteService.getOperation("createDestination"); operation.send(destName); var cs:ChannelSet = new ChannelSet(); var rtmpChannel:RTMPChannel = ServerConfig.getChannel("my-rtmp") as RTMPChannel; cs.addChannel(rtmpChannel); tradeService = new DataService() ; tradeService.destination=destName; tradeService.channelSet = cs; } Now when user hits on Load data button to load the trade data ... public function loadData():void { var remoteService:RemoteObject = new RemoteObject("filterRemoteVO"); var operation:AbstractOperation = remoteService.getOperation("loadData"); tradeService.fill(tradeCollection); operation.send(rowData.text ,GUIID); tradeList.dataProvider = tradeCollection; } Remove Data hit I clean all the resource and released collection :- public function removeAll():void{ if(tradeList.dataProvider){ tradeCollection.source = new Array(); tradeList.dataProvider.source = new Array(); tradeList.dataProvider = null; } tradeService.release(); tradeService.releaseCollection(tradeCollection); tradeService.channelSet.disconnectAll(); tradeService.disconnect(); tradeService.logout(); System.gc(); } Except these 3 function I don't have any code which could cause memory leak. I m using * LCDS 2.5 * Flex 3.0 * JBoss4.2 Please see the mxml file below , If possible please have a look at it , I might not be using dataSerice API correctly. I have been trying to solve this leak for last two week , I really need help from you guys. My client has already evaluating other contemporary technology because of this memory issue. I have also created scalled down war file which can be deployed on any java application server.Just provide your emial Id , Iwill send that to you. Any help will greatly be appreciated Regards, Dam MXML## http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init();" height="100%" width="100%" >
[flexcoders] Need suggestion on design
Hi There, I need some thoughts or ideas in designing loading status functionality in flex app. pls see the req below : - Requirement : Showing loading status in DataService based DG and turn it off when loading is done. DataService's fill method is fetching data from Jboss deployed app. When user click on LOAD button , request goes to Java app which in turn submit request to TIBCO EMS server. As soon as result returns from TIBCO a listener get notified where I push returned data to Flex. Call to TIBCO EMS is asynchronous meaning it does not return the data immediately. My req is to show loading status somewhere in app when data load is in progress. Which component of LCDS would serve this purpose ?. Please suggest me some design approach. Regards, Dharmendra
[flexcoders] Re: DataGrid not releasing memory on removeAll()
Hi Adrian Williams Thanks for the reply. I have tried your trick but I could not get it working as expected. Here is the code which I tried in my custom dataGrid:_ arrayCollection.revmoveAll(); for(var key:String in freeItemRenderersTable){ delete freeItemRenderersTable[key]; } dataProvider = null; freeItemRenderersTable is protected member of DG which keep all itemrenderes. How did your write custom script to release memory ? Please share the approach which u have followed. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Adrian Williams wrote: > > Hi there, > > We had a similar problem albeit with the AdvancedDataGrid...it > wouldn't release the custom renderers even after we told it to...in the > end, we had to write a custom script that would track our renderers and > when we wanted to GC things, we had to call the script to release the > renderers. Additionally, a removeAll didn't seem to do the trick for us > either...we had to set the dataProvider to null. > > HTH > -adrian > > Dharmendra Chauhan wrote: > > > > > > * > > Hi All, > > Thanks for the response. > > > > 1) I agree with the fact - that memory is not necessarily released > > just after you remove the items from datagrid. > > > > Now my question is how long I have to wait for GC to run and If they > > are eligible for GC then memory should be coming down after I issue > > Sytem.gc(). > > > > Why Memory usage is not coming down even after Force GC ??? > > > > 1) I do not have any event listerner attached to dataGrid or > > ArrayCollection, In fact, In my sample App , I just crated a data Grid > > with data provider and thats it. > > > > > > I suspect , dataGrid does not release its itemerenderer even after > > removing all item > > > > After digging the DG code I found following . > > Why FreeItemRenderersTable is Strongly Referenced ?? > > > > > > public function DataGridBase() > > { > > super(); > > > > listType = "vertical"; > > > > defaultRowCount = 7;// default number of rows is 7 > > columnMap = {}; > > freeItemRenderersTable = new Dictionary(false); > > } > > > > Is this the only reason for itemrenderes not being eligible for GC ?? > > > > Please throw some light on it > > > > Regards, > > Dharmendra > >* > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, Pedro Sena sena.pedro@ wrote: > > > > > > The memory is not necessarily released just after you remove the > > items from > > > datagrid. > > > > > > Removing them, you make them eligible by the garbage collector, but this > > > does not necessarily means that it will be collected. > > > > > > HTH, > > > > > > PS > > > > > > On Sat, Jun 6, 2009 at 3:02 PM, Dharmendra Chauhan > > > chauhan_i...@wrote: > > > > > > > > > > > > > > > Hi All, > > > > My DataGrid based application running into a Memory issue.The issue is > > > > dataGrid does not release the memory even after emptying it. > > > > Initially I thought Its my code which is causing the issue, but > > later I > > > > crated a sample application with just a dataGrid and a > > ArraCollection (no > > > > eventListener) and found the same issue. > > > > > > > > Memory should come down at least some MB when I remove all item > > from data > > > > provider. > > > > > > > > Memory usage with 10k row - 220 MB > > > > > > > > Memory usage after removing all item - STILL 220 MB > > > > > > > > Is this the standard behavior of datGird or do i need to apply some > > > > workaround to get rid of this ? > > > > > > > > Regards, > > > > Dharmendra > > > > > > > > > > > > > > > > > > > > > > > > -- > > > /** > > > * Pedro Sena > > > * Systems Architect > > > * Sun Certified Java Programmer > > > * Sun Certified Web Component Developer > > > */ > > > > > > > >
[flexcoders] Re: DataGrid not releasing memory on removeAll()
Hi All, Thanks for the response. 1) I agree with the fact - that memory is not necessarily released just after you remove the items from datagrid. Now my question is how long I have to wait for GC to run and If they are eligible for GC then memory should be coming down after I issue Sytem.gc(). Why Memory usage is not coming down even after Force GC ??? 1) I do not have any event listerner attached to dataGrid or ArrayCollection, In fact, In my sample App , I just crated a data Grid with data provider and thats it. I suspect , dataGrid does not release its itemerenderer even after removing all item After digging the DG code I found following . Why FreeItemRenderersTable is Strongly Referenced ?? public function DataGridBase() { super(); listType = "vertical"; defaultRowCount = 7;// default number of rows is 7 columnMap = {}; freeItemRenderersTable = new Dictionary(false); } Is this the only reason for itemrenderes not being eligible for GC ?? Please throw some light on it Regards, Dharmendra --- In flexcoders@yahoogroups.com, Pedro Sena wrote: > > The memory is not necessarily released just after you remove the items from > datagrid. > > Removing them, you make them eligible by the garbage collector, but this > does not necessarily means that it will be collected. > > HTH, > > PS > > On Sat, Jun 6, 2009 at 3:02 PM, Dharmendra Chauhan > wrote: > > > > > > > Hi All, > > My DataGrid based application running into a Memory issue.The issue is > > dataGrid does not release the memory even after emptying it. > > Initially I thought Its my code which is causing the issue, but later I > > crated a sample application with just a dataGrid and a ArraCollection (no > > eventListener) and found the same issue. > > > > Memory should come down at least some MB when I remove all item from data > > provider. > > > > Memory usage with 10k row - 220 MB > > > > Memory usage after removing all item - STILL 220 MB > > > > Is this the standard behavior of datGird or do i need to apply some > > workaround to get rid of this ? > > > > Regards, > > Dharmendra > > > > > > > > > > -- > /** > * Pedro Sena > * Systems Architect > * Sun Certified Java Programmer > * Sun Certified Web Component Developer > */ >
[flexcoders] DataGrid not releasing memory on removeAll()
Hi All, My DataGrid based application running into a Memory issue.The issue is dataGrid does not release the memory even after emptying it. Initially I thought Its my code which is causing the issue, but later I crated a sample application with just a dataGrid and a ArraCollection (no eventListener) and found the same issue. Memory should come down at least some MB when I remove all item from data provider. Memory usage with 10k row - 220 MB Memory usage after removing all item - STILL 220 MB Is this the standard behavior of datGird or do i need to apply some workaround to get rid of this ? Regards, Dharmendra
[flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )
Hi Mark, Sorry for late reply. I have tried the approch suggested by you but it seems that AS3 does not support it.I might be not be correct but this but this is what I experienced. I tried both SetVariable and flashVar ,but none these appears to be working. I have to find out other ways to get of my issue. Thanks a ton for your help. Regards, Dharmendra --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > Hi Mark > Thanks a ton, >Workaround suggeted by you should be doable.I will definitely implement it > and will keep the group posted. > > Thanks again Mark. > > Regards, > Dharmendra > > > --- In flexcoders@yahoogroups.com, mark.jonkman@ wrote: > > > > Hi Dharmendra > > > > While you don't have access to JavaScript, would the old school methods > > still work such as setting a Flash variable on the active x control. Back > > in older versions of Flash the only way to communicate between the browser > > and the ActiveX was to use things like setVariable then inside Flash you > > would have a watch expression that watched for changes to that variable, > > and reacted. The variable value could only be a string (I think). Back then > > we would change the value of the variable from outside, have Flash react to > > the change, reset the value of the variable to its "non-set" state. > > Assuming this would still work, when the .NET application regained focus > > you would tell the ActiveX instance to setVariable("focusReceived", > > "true"); and in Flash it would see that, reset the listeners. One word of > > warning, if your resetting your listeners constantly, are you doing > > anything to remove the old listeners first - if not that may well be the > > source of your memory leak. I used the setVariable method in VB with the > > old Flash active x controls a number of years ago and it worked flawlessly, > > you just have to set it up right to begin with and it was obviously > > "messier" then the ExternalInterface method. > > > > Sincerely > > Mark R. Jonkman > > > > - Original Message - > > From: "Dharmendra Chauhan" > > To: flexcoders@yahoogroups.com > > Sent: Friday, May 29, 2009 3:00:46 PM GMT -05:00 US/Canada Eastern > > Subject: [flexcoders] Re: Need Alternative for enterFrame event (Causing > > Memory leak ) > > > > Hi Manish, > > > > Thanks for the suggestion. > > > > I wish , I could use java script to set the Focus but I do not have luxury > > of Java Script as My application is running as ActiveX control inside dot > > net based application. > > > > Once the callback broken , communication from Ashokwave lib to swf is not > > possible. > > > > This is really a serious issue, I need some work around to fix it as I > > could not wait till the adobe fix it. > > > > Regards, > > Dharmendra > > > > > > > > > > --- In flexcoders@yahoogroups.com, Manish Jethani wrote: > > > > > > On Fri, May 29, 2009 at 12:40 AM, Dharmendra Chauhan > > > wrote: > > > > > > > The issue is with callBack ,what is happening is as soon you hide Flex > > > > application by opening another application(any app) and then again you > > > > come back to your flex app , call back does not work , they are > > > > broken.I > > > > found following related jira for this. > > > > > > > > http://bugs.adobe.com/jira/browse/FP-143 > > > > > > > > To solve this issue , I am re-registering all callBacks on ENTER_FRAME > > > > event and issue appears to be solved but this is leading to memory > > > > leak. > > > > > > > > Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both > > > > required a mouse Clk before they dispached. > > > > > > I thought you'd get 'activate' when the player got focus. You could > > > try setting the focus back to Flash through JavaScript (I don't > > > remember how to do this now). You should be getting a focus event on > > > the HTML/JS side at least. > > > > > > Manish > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > >
[flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )
Hi Mark Thanks a ton, Workaround suggeted by you should be doable.I will definitely implement it and will keep the group posted. Thanks again Mark. Regards, Dharmendra --- In flexcoders@yahoogroups.com, mark.jonk...@... wrote: > > Hi Dharmendra > > While you don't have access to JavaScript, would the old school methods still > work such as setting a Flash variable on the active x control. Back in older > versions of Flash the only way to communicate between the browser and the > ActiveX was to use things like setVariable then inside Flash you would have a > watch expression that watched for changes to that variable, and reacted. The > variable value could only be a string (I think). Back then we would change > the value of the variable from outside, have Flash react to the change, reset > the value of the variable to its "non-set" state. Assuming this would still > work, when the .NET application regained focus you would tell the ActiveX > instance to setVariable("focusReceived", "true"); and in Flash it would see > that, reset the listeners. One word of warning, if your resetting your > listeners constantly, are you doing anything to remove the old listeners > first - if not that may well be the source of your memory leak. I used the > setVariable method in VB with the old Flash active x controls a number of > years ago and it worked flawlessly, you just have to set it up right to begin > with and it was obviously "messier" then the ExternalInterface method. > > Sincerely > Mark R. Jonkman > > - Original Message - > From: "Dharmendra Chauhan" > To: flexcoders@yahoogroups.com > Sent: Friday, May 29, 2009 3:00:46 PM GMT -05:00 US/Canada Eastern > Subject: [flexcoders] Re: Need Alternative for enterFrame event (Causing > Memory leak ) > > Hi Manish, > > Thanks for the suggestion. > > I wish , I could use java script to set the Focus but I do not have luxury of > Java Script as My application is running as ActiveX control inside dot net > based application. > > Once the callback broken , communication from Ashokwave lib to swf is not > possible. > > This is really a serious issue, I need some work around to fix it as I could > not wait till the adobe fix it. > > Regards, > Dharmendra > > > > > --- In flexcoders@yahoogroups.com, Manish Jethani wrote: > > > > On Fri, May 29, 2009 at 12:40 AM, Dharmendra Chauhan > > wrote: > > > > > The issue is with callBack ,what is happening is as soon you hide Flex > > > application by opening another application(any app) and then again you > > > come back to your flex app , call back does not work , they are broken.I > > > found following related jira for this. > > > > > > http://bugs.adobe.com/jira/browse/FP-143 > > > > > > To solve this issue , I am re-registering all callBacks on ENTER_FRAME > > > event and issue appears to be solved but this is leading to memory leak. > > > > > > Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both > > > required a mouse Clk before they dispached. > > > > I thought you'd get 'activate' when the player got focus. You could > > try setting the focus back to Flash through JavaScript (I don't > > remember how to do this now). You should be getting a focus event on > > the HTML/JS side at least. > > > > Manish > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links >
[flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )
Hi Manish, Thanks for the suggestion. I wish , I could use java script to set the Focus but I do not have luxury of Java Script as My application is running as ActiveX control inside dot net based application. Once the callback broken , communication from Ashokwave lib to swf is not possible. This is really a serious issue, I need some work around to fix it as I could not wait till the adobe fix it. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Manish Jethani wrote: > > On Fri, May 29, 2009 at 12:40 AM, Dharmendra Chauhan > wrote: > > > The issue is with callBack ,what is happening is as soon you hide Flex > > application by opening another application(any app) and then again you > > come back to your flex app , call back does not work , they are broken.I > > found following related jira for this. > > > > http://bugs.adobe.com/jira/browse/FP-143 > > > > To solve this issue , I am re-registering all callBacks on ENTER_FRAME > > event and issue appears to be solved but this is leading to memory leak. > > > > Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both > > required a mouse Clk before they dispached. > > I thought you'd get 'activate' when the player got focus. You could > try setting the focus back to Flash through JavaScript (I don't > remember how to do this now). You should be getting a focus event on > the HTML/JS side at least. > > Manish >
[flexcoders] Re: Need Alternative for enterFrame event (Causing Memory leak )
Hi Alex, I think , I failed to communicate the real issue. Let me try to explain it The issue is with callBack ,what is happening is as soon you hide Flex application by opening another application(any app) and then again you come back to your flex app , call back does not work , they are broken.I found following related jira for this. http://bugs.adobe.com/jira/browse/FP-143 To solve this issue , I am re-registering all callBacks on ENTER_FRAME event and issue appears to be solved but this is leading to memory leak. Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both required a mouse Clk before they dispached. Workaroud for any of the above will solve my problem. I am wondering If there is any event which gets fired when I swich back to the flex app again. My application is hosted as ActiveX control and I m calling callback from Dot Net application. Regard, Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > ExternalInteface.addCallback does lock whatever function you pass it and the object associated with it. To avoid that you register a function in the main app with ExternalInterface since you won't be destroying the main app until you are truly done, then have it call anybody you need. > > To deal with knowing when setFocus gets called try FocusEvent.FOCUS_IN > > 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 Manish Jethani > Sent: Wednesday, May 27, 2009 1:43 PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Need Alternative for enterFrame event (Causing Memory leak ) > > > > > > On Thu, May 28, 2009 at 1:38 AM, Dharmendra Chauhan > chauhan_i...@...<mailto:chauhan_icse%40yahoo.com>> wrote: > > > Please , suggest some alternative for EnterFrame event which gets fired on set focus event. > > activate? > > Manish >
[flexcoders] Need Alternative for enterFrame event (Causing Memory leak )
Hi, I landed up myself in to memory leak and the reason of this leak is enterFrame event. I am re-registering ExterfaceInterface.callBack methods on this event to solve a problem ( callback connection broken on lost focus). memory consumption keeps increasing even when app is idle.. I need a event which gets fired when user switch to my app ,in this event I will re-register call backs to solve broken callBack connection issue. these callback are getting called from Dot Net application. Please , suggest some alternative for EnterFrame event which gets fired on set focus event. Regards, Dharmendra
[flexcoders] Re: How to release Memory consumed by DataService
Hi Alex Thanks for the reply. I profiled the app ,I can see arrayCollection in loitering object. I am wondering even aftter calling appropriate methods why arrayCollection has not been destroyed.I also dont have any listerner attached to the ArrayCollection. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > If you have data returned from the service hanging around, then those things > are probably hanging around too. Use the profiler to figure out who's > holding on to things. > > 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 Dharmendra Chauhan > Sent: Tuesday, May 26, 2009 1:07 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] How release Memory consumed by DataService > > > > > > Hello All, > dataService.release(); > dataService.dissconnect() > dataService.logout(); > > I am using above set of codes to release resources consumed by Data Service. > but I was surprised to see that even after running above code memory > consumption is not coming down. > > During profiling I found lot of loitering obeject named > ManagedObject, ProxyObject , AsynchToken etc .. > > I belive they are all created by DataService , i am wondering why they are > not gettig destroyed when dataService itself is disconnected. > > Please suggest me the ways to release all resources consumend by DataService > > I m using LCDS 2.6 with RTMP channel. > > Regards, > Dharmendra >
[flexcoders] How release Memory consumed by DataService
Hello All, dataService.release(); dataService.dissconnect() dataService.logout(); I am using above set of codes to release resources consumed by Data Service. but I was surprised to see that even after running above code memory consumption is not coming down. During profiling I found lot of loitering obeject named ManagedObject, ProxyObject , AsynchToken etc .. I belive they are all created by DataService , i am wondering why they are not gettig destroyed when dataService itself is disconnected. Please suggest me the ways to release all resources consumend by DataService I m using LCDS 2.6 with RTMP channel. Regards, Dharmendra
[flexcoders] Destroy DataDestination when user Disconnects ?
Hi FlexCoders, In my application a separate DataDestination gets created when user logs in. I want(struggling) to destroy the destination associated with the particular user. For this I have created FlexSesioListner and as soon as DataDestination gets created I immediately put it in FlexSession. FlexContext.getFlexSession().setAttribute("destID" desitID); SessionDestroy() method get called when user disconnect from app due to any reason The issue is SessionDestroy() ,flexsession.get( "destID") retuning null ??? while debugigng i found that FlexContext.getFlexSession() returns HttpFlexSession ie destID is getting stored in HttpFlexSession where as in SessionDestroy(FLexSession session) session is of type RTMPFlexSession hence I am getting null here. my question is how to put data in RTMPFlexSession so that I can be made available in sesssionDestroy() method when RTMP client disconnect. Just want to destroy the DataDestination when user gets disconnected from RTMP channel based Flex App Regards, Dharmendra
[flexcoders] Re: NEED more than 15 menu item in Context Menu ????
Thanks a lot for sharing me this idea. It seems to be working for me too except a tiny issue . The issue is when I Right Clk , Flash Player's context Menu appears for a moment then immediately disappears before actual dot net based context menu made available to UI. >From users perspective It is not acceptable and as for as I know Flash >context menu cant be made hidden. Did you also come across this issue while designing context menu ? Please suggest possible for this ? Regards, Dharmendra --- In flexcoders@yahoogroups.com, Steve Mathews wrote: > > We grab the right click in our .NET app and display that. I belive we > capture the event from the control so the native Flash menu isn't shown. > This works really well. > > On Mon, May 25, 2009 at 12:35 PM, Dharmendra Chauhan > wrote: > > > Hi Samuel, > > > > Thanks for the reply. > > > > Its running inside Flash Player ActiveX control.so no java script heck can > > be applied..I completely stuck at this point..Need some ideas around it. > > > > Any other UI components can be used to get similar functionality. > > > > Regards, > > Dharmendra > > > > > > > > > > --- In flexcoders@yahoogroups.com, Sam Lai wrote: > > > > > > Is the Flex app loaded in the IE ActiveX control, or the Flash Player > > > ActiveX control? > > > > > > If it is IE, any of the tricks to hide the context menu in the normal > > > IE browser should work. > > > > > > Never tried doing this myself though. > > > > > > On 5/23/09, Dharmendra Chauhan wrote: > > > > Thanks Lot for the Reply. > > > > My FLex Application is not running inside browser , It is running > > inside DOt > > > > Net container as a Active X control. the idea you suggested required > > default > > > > context menu to be hidden ..is it possible to hide it ? If yes then I > > Can > > > > open some custom window on right click and design. I am not sure how > > > > concrete this idea is.. > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "Yves Riel" wrote: > > > >> > > > >> What about intercepting the right-click at the browser level and > > > >> displaying your own contextual menu? However, you might have some > > > >> browser incompatibility to look at. > > > >> > > > >> > > http://blog.another-d-mention.ro/programming/right-click-and-custom-cont > > > >> ext-menu-in-flash-flex/ > > > >> > > > >> > > > >> > > > >> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] > > On > > > >> Behalf Of Dharmendra Chauhan > > > >> Sent: Friday, May 22, 2009 3:03 PM > > > >> To: flexcoders@yahoogroups.com > > > >> Subject: [flexcoders] NEED more than 15 menu item in Context Menu > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> Hi, > > > >> I really need to have more than 15 menu item displayed on Context > > Menu. > > > >> I desperately need some workaround or ideas to achieve this > > > >> > > > >> My client has invested thousands of dollar in Flex Project, he > > > >> definitely need more than 15 menu item.If this project failed , client > > > >> will NEVER think to invest in flex. > > > >> > > > >> > > > >> Had I been aware of this limitation before I would have thought some > > > >> solution by now.This comes as a surprise to me at the last moment > > ,just > > > >> fews days before Prod Date. > > > >> > > > >> Pls gents help me get rid of this ...PLEASE provide some ideas. > > > >> > > > >> Thanks in advance. > > > >> > > > >> Thanks, > > > >> Dharmendra > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Flexcoders Mailing List > > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > > Alternative FAQ location: > > > > > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > > > Search Archives: > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > > > > > > > > > > > > -- > > > Sent from my mobile device > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > >
[flexcoders] Re: NEED more than 15 menu item in Context Menu ????
Hi Samuel, Thanks for the reply. Its running inside Flash Player ActiveX control.so no java script heck can be applied..I completely stuck at this point..Need some ideas around it. Any other UI components can be used to get similar functionality. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Sam Lai wrote: > > Is the Flex app loaded in the IE ActiveX control, or the Flash Player > ActiveX control? > > If it is IE, any of the tricks to hide the context menu in the normal > IE browser should work. > > Never tried doing this myself though. > > On 5/23/09, Dharmendra Chauhan wrote: > > Thanks Lot for the Reply. > > My FLex Application is not running inside browser , It is running inside DOt > > Net container as a Active X control. the idea you suggested required default > > context menu to be hidden ..is it possible to hide it ? If yes then I Can > > open some custom window on right click and design. I am not sure how > > concrete this idea is.. > > > > > > --- In flexcoders@yahoogroups.com, "Yves Riel" wrote: > >> > >> What about intercepting the right-click at the browser level and > >> displaying your own contextual menu? However, you might have some > >> browser incompatibility to look at. > >> > >> http://blog.another-d-mention.ro/programming/right-click-and-custom-cont > >> ext-menu-in-flash-flex/ > >> > >> > >> > >> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > >> Behalf Of Dharmendra Chauhan > >> Sent: Friday, May 22, 2009 3:03 PM > >> To: flexcoders@yahoogroups.com > >> Subject: [flexcoders] NEED more than 15 menu item in Context Menu > >> > >> > >> > >> > >> > >> Hi, > >> I really need to have more than 15 menu item displayed on Context Menu. > >> I desperately need some workaround or ideas to achieve this > >> > >> My client has invested thousands of dollar in Flex Project, he > >> definitely need more than 15 menu item.If this project failed , client > >> will NEVER think to invest in flex. > >> > >> > >> Had I been aware of this limitation before I would have thought some > >> solution by now.This comes as a surprise to me at the last moment ,just > >> fews days before Prod Date. > >> > >> Pls gents help me get rid of this ...PLEASE provide some ideas. > >> > >> Thanks in advance. > >> > >> Thanks, > >> Dharmendra > >> > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > > > > > > > -- > Sent from my mobile device >
[flexcoders] Re: session.getAttribute("somekey") returning NULL in SessionDestroyed
Hi Flexcoders, I request you to have a look in to it as I could not figure out why it is happening. --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > Hi all, > session.getAttribute("somekey") is returning null in > SessionDestroyed() method of flex listener. > > Below are the steps I am following > > 1) I am adding flexLister in contextInitialized method of > ServletContextListener > >FlexSession.addSessionCreateListener(myListener) > > 2) In sessionCreate method > sessionCreated(FlexSession session) { >session.addSessionDestroyListener(this) > > } > 3) some where in applicaion I am putting a key vlaue pair in session like this > > FlexContext.getSession().setAttribute("somekey" , someVlue) ; > > > The issue is when I try to retreive vale from session > > her is how I m retreiving value > >sessionDestroyed(FlexSession session) { > > session.getAttribute("somekey"); this return null WHY ? > >} > > > This is always returning me null > > Pls note that I am RTMP channel and version of LCDS is 2.6 > > I also tried RTMPFlexSession > > RTMPFlexSession.addSessionCreateListener(myListener) > > but no luck , still got null > > Am I doing anything wrong ? > > > Thanks , > Dharmendra >
[flexcoders] Re: NEED more than 15 menu item in Context Menu ????
Thanks Lot for the Reply. My FLex Application is not running inside browser , It is running inside DOt Net container as a Active X control. the idea you suggested required default context menu to be hidden ..is it possible to hide it ? If yes then I Can open some custom window on right click and design. I am not sure how concrete this idea is.. --- In flexcoders@yahoogroups.com, "Yves Riel" wrote: > > What about intercepting the right-click at the browser level and > displaying your own contextual menu? However, you might have some > browser incompatibility to look at. > > http://blog.another-d-mention.ro/programming/right-click-and-custom-cont > ext-menu-in-flash-flex/ > > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Dharmendra Chauhan > Sent: Friday, May 22, 2009 3:03 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] NEED more than 15 menu item in Context Menu > > > > > > Hi, > I really need to have more than 15 menu item displayed on Context Menu. > I desperately need some workaround or ideas to achieve this > > My client has invested thousands of dollar in Flex Project, he > definitely need more than 15 menu item.If this project failed , client > will NEVER think to invest in flex. > > > Had I been aware of this limitation before I would have thought some > solution by now.This comes as a surprise to me at the last moment ,just > fews days before Prod Date. > > Pls gents help me get rid of this ...PLEASE provide some ideas. > > Thanks in advance. > > Thanks, > Dharmendra >
[flexcoders] session.getAttribute("somekey") returning NULL in SessionDestroyed
Hi all, session.getAttribute("somekey") is returning null in SessionDestroyed() method of flex listener. Below are the steps I am following 1) I am adding flexLister in contextInitialized method of ServletContextListener FlexSession.addSessionCreateListener(myListener) 2) In sessionCreate method sessionCreated(FlexSession session) { session.addSessionDestroyListener(this) } 3) some where in applicaion I am putting a key vlaue pair in session like this FlexContext.getSession().setAttribute("somekey" , someVlue) ; The issue is when I try to retreive vale from session her is how I m retreiving value sessionDestroyed(FlexSession session) { session.getAttribute("somekey"); this return null WHY ? } This is always returning me null Pls note that I am RTMP channel and version of LCDS is 2.6 I also tried RTMPFlexSession RTMPFlexSession.addSessionCreateListener(myListener) but no luck , still got null Am I doing anything wrong ? Thanks , Dharmendra
[flexcoders] NEED more than 15 menu item in Context Menu ????
Hi, I really need to have more than 15 menu item displayed on Context Menu. I desperately need some workaround or ideas to achieve this My client has invested thousands of dollar in Flex Project, he definitely need more than 15 menu item.If this project failed , client will NEVER think to invest in flex. Had I been aware of this limitation before I would have thought some solution by now.This comes as a surprise to me at the last moment ,just fews days before Prod Date. Pls gents help me get rid of this ...PLEASE provide some ideas. Thanks in advance. Thanks, Dharmendra
[flexcoders] Re: Multiple selection in dataGrid by dragging Mouse with left mouse key
Hi All, I had designed a solution for this.DataGrid source code itself contains solution. I have posted a sample application at my blog. http://flex-dharmendrac.blogspot.com/ <%20http://flex-dharmendrac.blogspot.com/%20%20> Regards, Dharmendra --- In flexcoders@yahoogroups.com, "Manish Jethani" wrote: > > On Sat, Jan 10, 2009 at 11:55 PM, Dharmendra Chauhan > chauhan_i...@... wrote: > > Is it possible to select multiple rows in data grid by just > > dragging mouse over It. I know this can we achieved with combination > > of sift key and mouse. > > [...] > > > Please let me know whether it is possible in flex or not and if it > > is possible then please provide me some pointers. > > I think you (or someone else) asked this one before and didn't get an > answer. This is possible but non-trivial. You can extend the DataGrid > to override the mouse handling and update the selection accordingly. > The pointer I can give you is the DataGrid source code itself -- look > into that. > > Manish > > -- > http://manishjethani.com >
[flexcoders] Re: SessionDestroyed () method is not getting called
Hi , I tried FlexSessionListener but I was surprised to see that only sessionCreated method is getting called. I have put break point in SessionDestroyed() method , It does NOT get called when I closes the Window. However It get called after 15-20 minute. I was expecting it to get called immediatly after the window closure but It is not happening. Please note that I m using RTMP channel and my application was deployed as activeX control and I have not configured any time out period. Do I need to configure anything else to enable SessionDestroyed() method ? Regards, Dharmendra --- In flexcoders@yahoogroups.com, "foobone9" wrote: > > > Create an object that implements the FlexSessionListener interface. > Then set your object to receive the callbacks: > > FlexContext.getFlexSession().addSessionDestroyedListener(your Object); > > > --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > > > Thanks Jeffrey, > > > > I am using RTMT channel, which interface I need to implement in order to > > get notification or I have.I mean what are the ways to implement it. > > I need to close some open connections to the backend system when Flex > > Client goes down. > > > > Regards, > > Dharmendra > > > > > > > > > > --- In flexcoders@yahoogroups.com, Jeffrey Vroom wrote: > > > > > > The FlexSession object dispatches session closed events. For RTMP > > > sessions, > > > these will be pretty much immediate. For HTTP sessions though, they are > > > dispatched when the session expires. So for RTMP you get quick > > > notification > > > but for HTTP it will be delayed based on your session expiration interval. > > > Jeff > > > > > > On Tue, May 12, 2009 at 10:39 PM, Dharmendra Chauhan > > > wrote: > > > > > > > > > > > > > > > Hi, > > > > I have to release resources when user get disconnected from LCDS. > > > > What I need to implement in java to listen it ? > > > > > > > > User may disconnect due to network failure ,when he closes the flex > > > > Window > > > > etc.. > > > > > > > > Thanks, > > > > Dharmendra > > > > > > > > > > > > > > > > > > > > > >
[flexcoders] Re: Do we get any notification when user dissconnects from LCDS
Thanks Jeffrey, I am using RTMT channel, which interface I need to implement in order to get notification or I have.I mean what are the ways to implement it. I need to close some open connections to the backend system when Flex Client goes down. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Jeffrey Vroom wrote: > > The FlexSession object dispatches session closed events. For RTMP sessions, > these will be pretty much immediate. For HTTP sessions though, they are > dispatched when the session expires. So for RTMP you get quick notification > but for HTTP it will be delayed based on your session expiration interval. > Jeff > > On Tue, May 12, 2009 at 10:39 PM, Dharmendra Chauhan > wrote: > > > > > > > Hi, > > I have to release resources when user get disconnected from LCDS. > > What I need to implement in java to listen it ? > > > > User may disconnect due to network failure ,when he closes the flex Window > > etc.. > > > > Thanks, > > Dharmendra > > > > > > > > >
[flexcoders] Do we get any notification when user dissconnects from LCDS
Hi, I have to release resources when user get disconnected from LCDS. What I need to implement in java to listen it ? User may disconnect due to network failure ,when he closes the flex Window etc.. Thanks, Dharmendra
[flexcoders] Re: loading status for DataGrid
Thanks for the reply, I really cant turn on pagiing because it makes sorting slow by at least 5 times.Once I did it but had to revert. I have to think other way to get rid of this issue. DataService should dispatch some event which tells the status of data loading. --- In flexcoders@yahoogroups.com, Jeffrey Vroom wrote: > > You can turn on paging, then listen for the "result" events on the > DataService. They'll be dispatched once for each page result. > Jeff > > On Tue, May 12, 2009 at 12:15 PM, Dharmendra Chauhan > wrote: > > > > > > > Hi All, > > I have flex DataGrid which asynchronously receive data throw LCDS deployed > > on Jboss.Initially It loads around 2k to 3k rows > > I need to show loading status which would just keep showing Data Loading > > until data load is complete. > > > > DataService class does not have any event which would serve this purpose > > > > Does anybody have any idea on it ? > > > > > > >
[flexcoders] loading status for DataGrid
Hi All, I have flex DataGrid which asynchronously receive data throw LCDS deployed on Jboss.Initially It loads around 2k to 3k rows I need to show loading status which would just keep showing Data Loading until data load is complete. DataService class does not have any event which would serve this purpose Does anybody have any idea on it ?
[flexcoders] Changing the BG color of selected row on contect menu item click
Hi All, I want to change the BG color of selected row on context Menu Item click. Actually , I have two context Menu Item 1) highlight 2)un-highlight they highlight/un-highlight selected row on click event. I found some resource on google ,all of them changing bg color in drawRowBackground(), but in my case I cant use it as I have to execute this logic on context item click. Pleas suggest some ideas. Second requirement is ,when user sort the grid after highlighting row , color of all highlighted row should remain same irresevtive of their new position. Thanks, Dharmendra
[flexcoders] Re: Enable/Disable Context Menu Based on selected row of DG
Thanks Man.. this is what I needed.. Now I can execute some logic before showing Context munu.. I appreciate your help. - Dharmendra --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > This example should help... > > > http://www.adobe.com/2006/mxml"; > layout="vertical" verticalAlign="middle" > creationComplete="onCreationComplete()"> > > > > contextMenu="{myContextMenu}" > itemRollOver="lastRollOverIndex = event.rowIndex"> > > > > > > > > > > HTH > > > > Steve > > > --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" > wrote: > > > > Hi Everybody, > > I need to enable/Disable Context Menu Item based the > selected row of the DG.ie I would perform some logic based on current > selected row to decide enabling/Disabling of context menu item. > > > > Classical example of this is Timesheet application. > > If a manager click on any of the entry which was already approved , he > should NOT be getting approve option enabled. > > I found some workaound to get this functionality workinng but they are > all browser based.They do not apply in my case as my application is > running on Flash Player. > > >
[flexcoders] Enable/Disable Context Menu Based on selected row of DG
Hi Everybody, I need to enable/Disable Context Menu Item based the selected row of the DG.ie I would perform some logic based on current selected row to decide enabling/Disabling of context menu item. Classical example of this is Timesheet application. If a manager click on any of the entry which was already approved , he should NOT be getting approve option enabled. I found some workaound to get this functionality workinng but they are all browser based.They do not apply in my case as my application is running on Flash Player.
[flexcoders] Context menu is not working for Flash Player 10
Hi, My Application is working fine with Flash Player9 but with FP10,it's somewhat broken.I am calling some external method throw ExternalInterFace on Context Menu Select event.None of the method is getting called with FP 10 ie call is not being made. Everything is working fine in FP9 have anybody encountered this issue ? what would be the possible workaround for it ?
[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum
My apologies , I missed to answer following:- Just to confirm, you have horizontalScrollPolicy="on"? It is auto. --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > I could not reproduce it today..But I remember It was happening on column > drag. However, Please let me know the workaround so that I can avoid > possibility of this unexpected issue behavior. > > I wanted to remove all deadsapce as it causes annoying effect but from ur > message It looks like it is not possible. By any chance If you/ anyone happen > to resolve this issue ,Please share the same in group. > > > --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > > > When did the swap happen? At startup? During a drag of columns or a > > sort? We'd need to know the cause to know how to prevent it. > > > > The datagrid cannot handle having a dead zone at the far right. It will > > always stretch the last column. Just to confirm, you have > > horizontalScrollPolicy="on"? > > > > 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 Dharmendra Chauhan > > Sent: Sunday, April 26, 2009 10:28 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation > > to Last Colum > > > > > > > > > > > > It swapped the order of the columns? > > yes , Sometimes blank column swpped with other column.It should not happen > > 1) Is there is a way to prevent this swapping ? > > 2) Is it possible to get rid of extra space at all without adding blank > > column ? > > As per my understing the purpose of this blank column is to absorb extra > > space and that is why you want it to be resizable = true. > > > > Regards, > > Dharmendra > > > > > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, > > Alex Harui wrote: > > > > > > It swapped the order of the columns? That would be unexpected. The last > > > column should not have resizable=false. It's job is to be resizable and > > > take up the extra space not needed by the other columns. > > > > > > Alex Harui > > > Flex SDK Developer > > > Adobe Systems Inc.<http://www.adobe.com/> > > > Blog: http://blogs.adobe.com/aharui > > > > > > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] > > > On Behalf Of Dharmendra Chauhan > > > Sent: Sunday, April 26, 2009 2:29 AM > > > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation > > > to Last Colum > > > > > > > > > > > > > > > > > > Hi Alex, > > > Thanks for the quick reply. > > > > > > I followed the approach suggested by you. But Now It still keeps > > > allocating extra space to the last column.However Now the last column has > > > been changed. It is the one which is without header having lableFunction > > > returning "" string . > > > > > > Pls see below column configuration :- > > > > > > > > > > > > > > > > > > > > resizable="false" headerText="" labelFunction="emptyValueLabelFunction"/> > > > > > > > > > Thanks, > > > - Dharmendra > > > > > > --- In > > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>, > > > Alex Harui wrote: > > > > > > > > Add one more column with headerText="" and labelFunction that returns "" > > > > > > > > Alex Harui > > > > Flex SDK Developer > > > > Adobe Systems Inc.<http://www.adobe.com/> > > > > Blog: http://blogs.adobe.com/aharui > > > > > > > > From: > > > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com> > > > > > > > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>] > > > > On Behalf Of Dharmendra Chauhan > > > > Sent: Saturday, April 25, 2009 1:45 PM > > > > To: > > > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com> > > > > Subject: [flexcoders] DataGrid: How to Prevent Extra Space Allocation > > > > to Last Colum > > > > > > > > > > > > > > > > > > > > > > > > Hi All, > > > > Please help me to get rid of extra space being allocated to the last > > > > column of DataGrid. > > > > Where does this extra come from ? whatever column I resize should > > > > actually be resized.Why does one column resize led to last column > > > > resize ? > > > > > > > > I have set horizontal policy to auto and resizable = true for all > > > > column.Also I cant make resizable = false for last column as It is not > > > > acceptable to my client > > > > > > > > Any help would be appreciated. > > > > > > > > > >
[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum
I could not reproduce it today..But I remember It was happening on column drag. However, Please let me know the workaround so that I can avoid possibility of this unexpected issue behavior. I wanted to remove all deadsapce as it causes annoying effect but from ur message It looks like it is not possible. By any chance If you/ anyone happen to resolve this issue ,Please share the same in group. --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > When did the swap happen? At startup? During a drag of columns or a sort? > We'd need to know the cause to know how to prevent it. > > The datagrid cannot handle having a dead zone at the far right. It will > always stretch the last column. Just to confirm, you have > horizontalScrollPolicy="on"? > > 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 Dharmendra Chauhan > Sent: Sunday, April 26, 2009 10:28 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to > Last Colum > > > > > > It swapped the order of the columns? > yes , Sometimes blank column swpped with other column.It should not happen > 1) Is there is a way to prevent this swapping ? > 2) Is it possible to get rid of extra space at all without adding blank > column ? > As per my understing the purpose of this blank column is to absorb extra > space and that is why you want it to be resizable = true. > > Regards, > Dharmendra > > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex > Harui wrote: > > > > It swapped the order of the columns? That would be unexpected. The last > > column should not have resizable=false. It's job is to be resizable and > > take up the extra space not needed by the other columns. > > > > Alex Harui > > Flex SDK Developer > > Adobe Systems Inc.<http://www.adobe.com/> > > Blog: http://blogs.adobe.com/aharui > > > > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On > > Behalf Of Dharmendra Chauhan > > Sent: Sunday, April 26, 2009 2:29 AM > > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation > > to Last Colum > > > > > > > > > > > > Hi Alex, > > Thanks for the quick reply. > > > > I followed the approach suggested by you. But Now It still keeps allocating > > extra space to the last column.However Now the last column has been > > changed. It is the one which is without header having lableFunction > > returning "" string . > > > > Pls see below column configuration :- > > > > > > > > > > > > > resizable="false" headerText="" labelFunction="emptyValueLabelFunction"/> > > > > > > Thanks, > > - Dharmendra > > > > --- In > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>, > > Alex Harui wrote: > > > > > > Add one more column with headerText="" and labelFunction that returns "" > > > > > > Alex Harui > > > Flex SDK Developer > > > Adobe Systems Inc.<http://www.adobe.com/> > > > Blog: http://blogs.adobe.com/aharui > > > > > > From: > > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com> > > > > > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>] > > > On Behalf Of Dharmendra Chauhan > > > Sent: Saturday, April 25, 2009 1:45 PM > > > To: > > > flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com> > > > Subject: [flexcoders] DataGrid: How to Prevent Extra Space Allocation to > > > Last Colum > > > > > > > > > > > > > > > > > > Hi All, > > > Please help me to get rid of extra space being allocated to the last > > > column of DataGrid. > > > Where does this extra come from ? whatever column I resize should > > > actually be resized.Why does one column resize led to last column resize ? > > > > > > I have set horizontal policy to auto and resizable = true for all > > > column.Also I cant make resizable = false for last column as It is not > > > acceptable to my client > > > > > > Any help would be appreciated. > > > > > >
[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum
It swapped the order of the columns? yes , Sometimes blank column swpped with other column.It should not happen 1) Is there is a way to prevent this swapping ? 2) Is it possible to get rid of extra space at all without adding blank column ? As per my understing the purpose of this blank column is to absorb extra space and that is why you want it to be resizable = true. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > It swapped the order of the columns? That would be unexpected. The last > column should not have resizable=false. It's job is to be resizable and take > up the extra space not needed by the other columns. > > 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 Dharmendra Chauhan > Sent: Sunday, April 26, 2009 2:29 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to > Last Colum > > > > > > Hi Alex, > Thanks for the quick reply. > > I followed the approach suggested by you. But Now It still keeps allocating > extra space to the last column.However Now the last column has been changed. > It is the one which is without header having lableFunction returning "" > string . > > Pls see below column configuration :- > > > > > > resizable="false" headerText="" labelFunction="emptyValueLabelFunction"/> > > > Thanks, > - Dharmendra > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex > Harui wrote: > > > > Add one more column with headerText="" and labelFunction that returns "" > > > > Alex Harui > > Flex SDK Developer > > Adobe Systems Inc.<http://www.adobe.com/> > > Blog: http://blogs.adobe.com/aharui > > > > From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On > > Behalf Of Dharmendra Chauhan > > Sent: Saturday, April 25, 2009 1:45 PM > > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] DataGrid: How to Prevent Extra Space Allocation to > > Last Colum > > > > > > > > > > > > Hi All, > > Please help me to get rid of extra space being allocated to the last column > > of DataGrid. > > Where does this extra come from ? whatever column I resize should actually > > be resized.Why does one column resize led to last column resize ? > > > > I have set horizontal policy to auto and resizable = true for all > > column.Also I cant make resizable = false for last column as It is not > > acceptable to my client > > > > Any help would be appreciated. > > >
[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum
Hi Alex, Thanks for the quick reply. I followed the approach suggested by you. But Now It still keeps allocating extra space to the last column.However Now the last column has been changed. It is the one which is without header having lableFunction returning "" string . Pls see below column configuration :- Thanks, - Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Add one more column with headerText="" and labelFunction that returns "" > > 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 Dharmendra Chauhan > Sent: Saturday, April 25, 2009 1:45 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] DataGrid: How to Prevent Extra Space Allocation to Last > Colum > > > > > > Hi All, > Please help me to get rid of extra space being allocated to the last column > of DataGrid. > Where does this extra come from ? whatever column I resize should actually be > resized.Why does one column resize led to last column resize ? > > I have set horizontal policy to auto and resizable = true for all column.Also > I cant make resizable = false for last column as It is not acceptable to my > client > > Any help would be appreciated. >
[flexcoders] DataGrid: How to Prevent Extra Space Allocation to Last Colum
Hi All, Please help me to get rid of extra space being allocated to the last column of DataGrid. Where does this extra come from ? whatever column I resize should actually be resized.Why does one column resize led to last column resize ? I have set horizontal policy to auto and resizable = true for all column.Also I cant make resizable = false for last column as It is not acceptable to my client Any help would be appreciated.
[flexcoders] Last Column is getting unnecessary space on column resize ?
Hi All, I have a resizable dataGrid with horizontalScrollPolicy = "auto " , when I resize any column , width of last column is being increased ? If I am not resizing it ( last column) ,why is it increasing its width ? I dived in to dataGrid code and found a method calculateColumnSizes (), this method has got code which assign unnecessary space to the last column. Since this is private method ,I cant ovrride it . Also , when i try to minimize its width ,it required more than 2 attempt to acheive it ..why It is so ? Last colun resizing behavior should be similier to the rest of the column ? Is anybosy has ever faced these issue ? Does anybody know the solution ? Regards, Dharmendra
[flexcoders] GENERIC compareFucntion without hardcoding of dataField ?
Hi All, My flex2 DataGrid has got at least 50 columns of type Date.I also have list which opens when use select a context menu item ,in this list user can select any no of columns on which he wants multiple sorting to be happen. Lets say user has selected 5 Columns for multi sorting,I create 5 sortField with compareFunction in loop as follows var sortFieldArray:Array = new Array(); for(var dataField in selectedColumnArray){ var field:SortField = new SortField(dataField ); field.compareFunction = function(itemA:Object,itemB:Object):int{ var dateA:Date =itemA[dataField ] ; var dateB:Date =itemB[dataField ] ; . } sortFieldArray.push(field); } Problem which I have been facing is ,local var dataField is always referring to the last value of selectedColumnArray hence sorting is happening based on last column only. I dont want to create separate compareFunction for each column , simply because at compilation time I dont know about the no of column which user can choose to participate in multipleSorting.And I dont want to create 50 compareFunction with hardcoded dataField name Is it possible to create GENERIC compareFucntion which can take dataField without hard coding ? Please throw some light on this it? Regards, Dharmendra chauhan
[flexcoders] Flickering in datagrid Header Renderer while loading data
I m also facing similar issue,Please see my code below:- Custom Header Renderer: [Bindable] private var theImage:Class; override public function set data(value:Object):void { dgColumn = value as DataGridColumn; if(dgColumn.sortDescending) this.theImage = this.downArrow; else this.theImage = this.upArrow; } ]]> Image is flicking when data loads in data grid. I also tried Label with some text, that to is flicking. Everything looks good as soon as data loading is over .Is there any ways to avoid this flicker ?? Please throw some light in to it Regards, Dharmendra
[flexcoders] Not able to send Data in URLRequest
Hi , I am accessing flex application running on JBOSS server from Dot Net Client.Everything is working fine except i am NOT able to send data in http post. var variables:URLVariables = new URLVariables(); variables.htmltable= convertDGToHTMLTable(dg); var u:URLRequest = new URLRequest("ExcelExport.jsp"); u.data = variables; //Pass the variables u.method = URLRequestMethod.POST; / ExcelExport.jsp resides in same server directory where app is running It opens a blank excel file when I access my flex datagrid from dot net container However ,I am able to pass data in http post when I run flex application from browser. In Nutsell , data is not being passed when application accessed from dot net client. Please help me to find solution of this issue.
[flexcoders] RTMP channel not found error ..
Hi , I am getting error similar to above when I run my app after building with Flex ant.It works fine when I compile it with web-tier compiler or flex builder. Please see my ant script given below.Am I missing anything ? Note: I am using flex2 with fds and app server is jboss4.2.
[flexcoders] Arrow on Multiple Column's Header in Flex2 DataGrid
Hi All, I have to show Sorting arrows(Up & Down) on DataGrid(Hotfix2) Header for more than one Column.I want to show arrow based on underlying dataProvider Sorting ie if arrayCollection was sorted based on two column then two respective column in DG should show arrow on Header. Please do share your ideas on how to do it. Please share the code if someone have already done it. Any help would be highly appreciated. Thanks, Dharmendra Chouhan
[flexcoders] Re: How to increase datagrid Last Column WIDTH
Thanks Jeffry for your reply. Well,we can chagne width of datagrid on column strech even.I am iterating all coloumn and assigning sum of these colums's width to datagrid. This works fine in case of all column except the last one.It does not allow me to increase width of last column.However I can decrease it. While debugging I found that In case of last column Strech,MouseUp Event does not get triggred because Mouse Moves out of grid area for strechng last column. I could not figure out how to make this event triggred. I am attaching code here,Please have a look if anoyne of you get time. MMXL Code: http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:ns2="*" horizontalScrollPolicy="auto" > DataGrid Class: package { import mx.controls.DataGrid; import mx.controls.dataGridClasses.DataGridHeader; public class DataGridCustom extends DataGrid { public function DataGridCustom() { super(); } override protected function drawSeparators():void { DataGridHeader(header).needRightSeparatorEvents = true; DataGridHeader(header).needRightSeparator = true; super.drawSeparators(); } } } Regards, Dharmendra Chouhan --- In flexcoders@yahoogroups.com, Jeffry Houser wrote: > > > Columns are only resizable within DataGrid, and clicking / dragging > columns does not change the width of the DataGrid. > > If I understand correctly you want to be able to expand the DataGrid by > clicking and dragging the last column; is that correct? > > Off the top of my head, I don't know of any default way to do that. > > Dharmendra Chauhan wrote: > > HI All, > > I am struggling with last column of flex2 dataGrid. > > I have set HS policy to auto, all column are resizable except last. > > I can decrease its width but It does not allow me increase it. > > > > Does anybody know how STRECH last column widht to increase at at right > > of the DG > > > > Thanks, > > Dharmendra > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f- b4cf-1e62079f6847 > > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links > > > > > > > > > > > > -- > Jeffry Houser, Technical Entrepreneur > Adobe Community Expert: http://tinyurl.com/684b5h > http://www.twitter.com/reboog711 | Phone: 203-379-0773 > -- > Easy to use Interface Components for Flex Developers > http://www.flextras.com.com?c=104 > -- > http://www.theflexshow.com > http://www.jeffryhouser.com > -- > Part of the DotComIt Brain Trust >
[flexcoders] How to increase datagrid Last Column WIDTH
HI All, I am struggling with last column of flex2 dataGrid. I have set HS policy to auto, all column are resizable except last. I can decrease its width but It does not allow me increase it. Does anybody know how STRECH last column widht to increase at at right of the DG Thanks, Dharmendra
[flexcoders] Is It possible to dynamically resize datagrid's Width
Hi All, I have designed a custom data which allows user to add column dynamically.It allows user to resize Column.the functionality which I am looking for is that if I hold mouse on the last column and take it to the right to increase column's width then datagrid should increase its own width to accommodate new width of the column.ie datagrid should expand its width in the right to accommodate/respect width of the column. Regards, Dharmendra Chouhan
[flexcoders] Can we freeze(Fix) Any Column / Row in DataGrid
Hi All, Is it possible to freeze any Column and Row in DataGrid while keeping rest of the Row/Column moving.i e ,If my FG has got four column named A,B,C,D ,E..Z.I want to freeze or fixed column B that means I scroll to right of the grid , B column should always be visible. In case of Row, If I select 10 th row,row from 1-10 should get breezed(fixed) irrespective vertical scroll bar movement. Please point me appropriate direction. Regards, Dharmendra Chouhan
[flexcoders] Advanced Formatting
Hi All, This time I am struggling with formatting as I am migrating Dot Net application to flex.Standard flex library does not support advanced formatting. Here is type of formatting which I want to implement in Flex 1) 0 (Zero placeholder): If the value being formatted has a digit in the position where the '0' appears in the format string, then that digit is copied to the result string; otherwise, a '0' appears in the result string. The position of the leftmost '0' before the decimal point and the rightmost '0' after the decimal point determines the range of digits that are always present in the result string. The "00" specifier causes the value to be rounded to the nearest digit preceding the decimal, where rounding away from zero is always used. For example, formatting 34.5 with "00" would result in the value 35. 2) #(Digit placeholder): If the value being formatted has a digit in the position where the '#' appears in the format string, then that digit is copied to the result string. Otherwise, nothing is stored in that position in the result string. Note that this specifier never displays the '0' character if it is not a significant digit, even if '0' is the only digit in the string. It will display the '0' character if it is a significant digit in the number being displayed. The "##" format string causes the value to be rounded to the nearest digit preceding the decimal, where rounding away from zero is always used. For example, formatting 34.5 with "##" would result in the value 35. Please suggest me ways to provide advanced formatting in flex. Any help would be highly appreciated Regards, Dharmendra
[flexcoders] Re: DataGrid Column Sizing issue
Hi Alex, Thanks for the reply. I am reseting column every time when I add remove any column from from DataGrid Column.But It still scaled last column up to right most of dataGrid. I am summing size of all column and assigning it to datagrid.width and calling datagrid.validateNow() method. still it is not resizing size of dataGrid. Any idea ,which method i need to call to ask container to resize it. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > When horizontalScrollPolicy="off" (default), all columns are scaled to fit within the width of the DG. It makes it kind of hard to insert one column and get the sizing you want because existing columns get an extra attempt their sizes honored. One solution is to totally reset the columns array. > > If horizontalScrollPolicy="on" or "auto" columns do not get scaled but the last column will get stretched as necessary so we don't leave dead space at the far right of the scroll area. > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dharmendra Chauhan > Sent: Tuesday, January 20, 2009 8:02 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] DataGrid Column Sizing issue > > > Hi All, > > I have designed a custom dataGrid which allows user to select > column which he wants to be visiable.Here is the issue which I have > been facing: > > When user select two column to be visiable, > > Lets assume Col1.with = 25 , > > Col2.with = 20 , > > Expected Result: > > It should occupy 25+20 pixel space and adjust > datagrid size accordingly. > > Actual Result: > > Col1 is occupying correct space but col2 occupies > all rest of the space available on the right hand side i.e. col2 is > to occupying more space than it is suppose to be. > > I want col2 to occupy only 20 pixel space. > > datagird height and width both are 100 % > > Any help would be highly appreciated. > > Regards, > > Dharmendra Chouhan >
[flexcoders] DataGrid Column Sizing issue
Hi All, I have designed a custom dataGrid which allows user to select column which he wants to be visiable.Here is the issue which I have been facing: When user select two column to be visiable, Lets assumeCol1.with = 25 , Col2.with = 20 , Expected Result: It should occupy 25+20 pixel space and adjust datagrid size accordingly. Actual Result: Col1 is occupying correct space but col2 occupies all rest of the space available on the right hand side i.e. col2 is to occupying more space than it is suppose to be. I want col2 to occupy only 20 pixel space. datagird height and width both are 100 % Any help would be highly appreciated. Regards, Dharmendra Chouhan
[flexcoders] Re: Data Grid Issue
Hi Sanjay, Thanks lot for you reply. Please share that piece of code where in you are storing the index of selected row at the respective index of array. How did you u get the row which need to be selected, are you also calling a method on mouseOver function. I desperately need this functionality in my project. Please share your sample app if possible or have a look in my code below, please point me to the location where I need to focus. Regards, Dharmendra http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init()" backgroundColor="#b3b4ae" > DataGrid { backgroundColor:#b3b4ae; borderColor:#66696B; verticalGridLineColor :#808080; horizontalGridLineColor :#808080; themeColor:#0A246A; borderStyle:solid; fontSize: 8; headerStyleName: "dgHeaderStyles"; } .dgHeaderStyles { fontSize: 10; textAlign: left; backgroundColor: #d4d0c8; fontFamily :san Sarif; } --- In flexcoders@yahoogroups.com, "sanjaypmg" wrote: > > Hello Dharmendra, > > I have done this type of functionality in Flex 2. That functionality > was like :: User can select multiple rows on a single click without > pressing SHIFT key and when user again click on the selected row it > gets deselected. for that functionality I have not override any > method. I have just created a method & Array as you have done and > stored the index of selected row at the respective index of array. > thereafter asigned that array to DG's selectedIndices. > > > Cheers > Sanjay Sharma > > --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" > wrote: > > > > Hello, > > I have designed a custom dataGird which allows user to select > > multiple row without shift key. that meas user just need to right > > click the mouse and drag it over the grid. For this I have > > override mouseOverHandler Function in my dataGrid. > > > > override protected function mouseOverHandler (event:MouseEvent):void > > { > > var selectedArr:Array = new Array(); > > if(isMouseDown){ > > > >try{ > > > >selectedArr = dg.selectedIndices; > > > > > >selectedArr.push(mOver.target.listData.rowIndex); > > > > > >dg.selectedIndices = selectedArr; > > > > > > }catch(e:Error){ > >} > > } > >} > > > > Issue wich I have been facing is 'mOver.target.listData.rowIndex' > > does not consistently return rowIndex ,whenever I move mouse with > > fast pace > > 1 ) it throws an error " Property listData not found on > > mx.controls.listClasses.ListBaseContentHolder > > and there is no default value" . > > 2) Some dataGrid does not dispatch mouseOver as a result > > mouseUpHandler does get called. > > I hope you are convinced with observation.Please let me know you > > have any workAound for the above issue. > > > > Regards, > > Dharmendra > > >
[flexcoders] Re: Data Grid Issue
Here is complete code:- http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init()" backgroundColor="#b3b4ae" > DataGrid { backgroundColor:#b3b4ae; borderColor:#66696B; verticalGridLineColor :#808080; horizontalGridLineColor :#808080; themeColor:#0A246A; borderStyle:solid; fontSize: 8; headerStyleName: "dgHeaderStyles"; } .dgHeaderStyles { fontSize: 10; textAlign: left; backgroundColor: #d4d0c8; fontFamily :san Sarif; } Regards, Dharmendra --- In flexcoders@yahoogroups.com, "Dharmendra Chauhan" wrote: > > Hello, > I have designed a custom dataGird which allows user to select > multiple row without shift key. that meas user just need to right > click the mouse and drag it over the grid. For this I have > override mouseOverHandler Function in my dataGrid. > > override protected function mouseOverHandler (event:MouseEvent):void > { > var selectedArr:Array = new Array(); > if(isMouseDown){ > >try{ > >selectedArr = dg.selectedIndices; > > >selectedArr.push(mOver.target.listData.rowIndex); > > >dg.selectedIndices = selectedArr; > > > }catch(e:Error){ >} > } >} > > Issue wich I have been facing is 'mOver.target.listData.rowIndex' > does not consistently return rowIndex ,whenever I move mouse with > fast pace > 1 ) it throws an error " Property listData not found on > mx.controls.listClasses.ListBaseContentHolder > and there is no default value" . > 2) Some dataGrid does not dispatch mouseOver as a result > mouseUpHandler does get called. > I hope you are convinced with observation.Please let me know you > have any workAound for the above issue. > > Regards, > Dharmendra >
[flexcoders] Data Grid Issue
Hello, I have designed a custom dataGird which allows user to select multiple row without shift key. that meas user just need to right click the mouse and drag it over the grid. For this I have override mouseOverHandler Function in my dataGrid. override protected function mouseOverHandler(event:MouseEvent):void { var selectedArr:Array = new Array(); if(isMouseDown){ try{ selectedArr = dg.selectedIndices; selectedArr.push(mOver.target.listData.rowIndex); dg.selectedIndices = selectedArr; }catch(e:Error){ } } } Issue wich I have been facing is 'mOver.target.listData.rowIndex' does not consistently return rowIndex ,whenever I move mouse with fast pace 1 ) it throws an error " Property listData not found on mx.controls.listClasses.ListBaseContentHolder and there is no default value" . 2) Some dataGrid does not dispatch mouseOver as a result mouseUpHandler does get called. I hope you are convinced with observation.Please let me know you have any workAound for the above issue. Regards, Dharmendra
[flexcoders] Multiple selection in dataGrid by dragging Mouse with left mouse key
Is it possible to select multiple rows in data grid by just dragging mouse over It. I know this can we achieved with combination of sift key and mouse. This need has arisen because we are migrating .DOT Net data grid with flex data grid and user want to have same ease of multiple selection. Initially I was confused with dragMultipleSelection propery of datagird but later I realized that it is for dragging rows and not for selection. Please let me know whether it is possible in flex or not and if it is possible then please provide me some pointers.
[flexcoders] DataGrid MultipleSelectio with mouse only
I want to provide functionality where in user can select multiple rows in dg by holding left mouse key and dragging over the dg. I have also designed a sample app for this but Only issue with approach is that It(mOver.target.listData.rowIndex) does not consistently return rowIndex ,sometimes It throws error `Property listData not found on mx.controls.listClasses.ListBaseContentHolder and there is no default value" as a result of it ,few row left unselected. This error occurs only when user tries to select rows with fast mouser movement. http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init()" backgroundColor="#b3b4ae" > DataGrid { backgroundColor:#b3b4ae; borderColor:#66696B; verticalGridLineColor :#808080; horizontalGridLineColor :#808080; themeColor:#0A246A; borderStyle:solid; fontSize: 8; headerStyleName: "dgHeaderStyles"; } .dgHeaderStyles { fontSize: 10; textAlign: left; backgroundColor: #d4d0c8; fontFamily :san Sarif; }
[flexcoders] get rowIndex in datagird's mouseOver Function
My requiremnt is to get rowIndex in mouseover Function in DataGird so that I can use that index to select perticuler row of datagrid.ItemRollover Function does not get called when I hold left mouse key and drag it over dg. I want to provide functionality where in user can select multiple rows in dg by holding left mouse key and dragging over the dg. I have also designed a sample app for this but Only issue with approach is that It(mOver.target.listData.rowIndex) does not consistently return rowIndex ,sometimes It throws error `Property listData not found on mx.controls.listClasses.ListBaseContentHolder and there is no default value" as a result of it ,few row left unselected. This error occurs only when user tries to select rows with fast mouse movement. Here is my sample app code :- http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="init()" backgroundColor="#b3b4ae" > DataGrid { backgroundColor:#b3b4ae; borderColor:#66696B; verticalGridLineColor :#808080; horizontalGridLineColor :#808080; themeColor:#0A246A; borderStyle:solid; fontSize: 8; headerStyleName: "dgHeaderStyles"; } .dgHeaderStyles { fontSize: 10; textAlign: left; backgroundColor: #d4d0c8; fontFamily :san Sarif; }