What's the easiest way to have datagrid including renderers disabled, with loading spinner?

I understand how to fire my start loading / end loading events when a datagrid is being populated from external data. What I do not know how to do effecitively (and have been googling) is what's the best practice for making the datagrid appear as modal with a loading spinner on top of it?
My train of thought of the approach is - onLoading,  Make existing datagrid not clickable, then set alpha to dim the current datagrid. Show a loading spinner on top of  the grid.
I can set the alpha which gives it the modal appearance, but how to make it so the user can't click anything in the existing grid? Setting the grid to enabled=false sort of works, but there are some icons in an item renderer in the grid that at are still clickable. Do I have to manually disable all of them as well?
Sadly, I'm suprised that googling for this hasn't turned up much. I know this must be a basic problem.

hi,
I would place the grid in a container and have 2 states when you want to load data you set the state to locked once data is loaded set state to normal, in locked state it will show a custom spinner, blur the container and disable the container which effectively blocks the Grid. I just included the button event so you could test the effect.
David
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
protected function button1_clickHandler(event:MouseEvent):void
if (this.currentState == 'normal')
currentState = "locked"
else
currentState = "normal";
]]>
</fx:Script>
<s:states>
<s:State name="normal"/>
<s:State name="locked"/>
</s:states>
<fx:Declarations>
<s:BlurFilter id="lockGrid" blurX="4" blurY="4"/>
</fx:Declarations>
<s:Group x="199" y="131" width="655" height="381" enabled.locked="false" filters.locked="{[lockGrid]}">
<mx:DataGrid right="0" left="0" top="0" bottom="0">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
</s:Group>
<!--<mx:SWFLoader id="myspinner" source="spinner.swf" includeIn="locked" verticalCenter="0" horizontalCenter="0/>-->
<s:Button x="199" y="538" label.normal="Disable Grid" label.locked="Enable Grid" click="button1_clickHandler(event)"/>
</s:Application>

Similar Messages

  • What is the easiest way to make a slide presentation DVD with music that can be played on PC or DVD player using MacBook Pro?

    What is the easiest way to make a slide presentation DVD with music that can be played on a PC or DVD player?  I'm using a MacBook Pro since that's the computer that has all the photos (in an album) and music.  Thanks.

    I would suggest that you post this to the Adobe Encore>Menus & Buttons forum. What you want to do, if I read correctly, is pretty simple. There will probalby be links available to step you though it. I'll look for this there, and start gathering some links.
    Good luck,
    Hunt

  • What's the easiest way to have a message box?

    Hey, i'm making this game and i have one frame and i have and one panel inside, and when the user completes the game i want a message box to popup saying "Congratulations, You Won!"
    At the moment when the user wins the game, i've just put a "System.out.println("You've Won"); but i want a message box to appear on top of the game. What's the best and simplest way to achieve this?
    I tried replacing my "System.out.println("You've Won") with JOptionPane.showMessageDialog(null, "You Won!"); and that just caused the whole thing to freeze up.
    Thanks

    saru88 wrote:
    I did as you suggested and changed the "null" in
    JOptionPane.showMessageDialog(null, "You Won!"); to
    JOptionPane.showMessageDialog(this, "You Won!"); to refer to the JPanel which contains the game code.And? Any benefit (unlikely)?
    Sorry for my lack of explanation about freezing up, what happens is the message box appears, but the inside is completely transparent and so i can see the game display behind it. And if i click inside it, then it does nothing but change the focus to that window. When i said freeze before i meant, it becomes "non responding" and so I have to open "Task Manager" and close it that way. This sounds like a thread issue. Are you calling JOptionPane.showMessageDialog(...) off of the EDT, the Event Dispatch Thread?

  • What is the easiest way to sync Google Cal and Contacts with an iMac?

    iTunes will sync Google Contacts, but not calendar. Weird. Why? What's the best fix?

    There must a better way to do this. The problem is, YOU CAN'T UNCHECK IPHOTO in the installer. You pretty much need all the support files which you can't see in the installer, but you usually don't want iphoto.
    1 way to get around this is: Quit the installer if you launched it. Open the install disc > search = (any ilife app) > make visibility option 'invisible'. (if you don't know how, search invisible files in apple's help menu). run through the stuff to find a 'packages' (or some similar name) folder. Inside of that, I install everything except for what I don't want, which for me is the iphoto and imovie stuff.
    Still there must a better way, maybe you can create your own installer from the packages w/ package maker or something and burn that image... Worth trying...
    Please be assured that you will not get full integration between the current apps and the iLife apps in 10.9.x; Mavericks.  The apps don't have all the expected hooks to each other due end of product development. This seems to be the crux of the problems I've had testing to make an idvd dvd.
    If you're running 10.9, I recommend moving on to current replacements that will work as expected. That way you won't be wasting time running down project problems.

  • What is the easiest way to get time stamped wvm data with AI samp Ch Vi?

    The AI sample channel VI only outputs single point waveform data which is making it a beast for me to get my input data into XY graphs. I have been trying to combine the data with a elapsed time clcok so I can synchronize all my inputs but it isnt working too great. All this stuff is in a while loop also, so that gives me trouble. Basically I just want to make an XY graph from both AI inputs.
    Attachments:
    PID_Control_LoopII.vi ‏326 KB

    Tim, no problem. I have attached the modified code that displays the readings from both devices on the same plot. I used a chart instead of an XY graph since it is much easier to use (it keeps track of elapsed time for you if you know the amount of time in between data points - and since the loop time is fixed we do know that). If this time were to change, then we would have to re-create the X-axis (time) and the XY graph would be necessary. One other note - the code that reads the values from the DAQ cards will not execute at exactly the same time, therefore the data will not be acquired at exactly the same time, though it will be close. Therefore, if your application requires these readings to be dead on together in time down to the mi
    crosecond for example, then you would have to synch the two devices via hardware. Let me know if you intend to do that and I can steer you in the right direction. Hope this helps.
    Attachments:
    PID_Control_LoopII_rev_2.vi ‏89 KB

  • What's the easiest way to resize/optimize an image size with the iPhone SDK?

    hi.......every one.
    I developed one APP in XCode4.6.3 ,it's working perfectly in ipad.
    After update my xocde 4.6.3 to 5.0 it is not working, it is crashes.
    How to Set an iamge for both ,ipad & ipad retina

    Hi Srikanth,
    if chitram.png is your image file for 1024 resolution iPad, then [email protected] will become image for retina iPad.
    Please have double resolution image ready for that.

  • I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. my goal is to store them in an external hard drive so it doesn't use up memory on the mac hard drive. is it possible to copy the specific projects without copying the entire library? what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    What do you not understand?
    You can duplicate the iPhoto library (command - D ) and delete everything except the project and its photos from the copy and move that
    Or
    However the calendar takes very little space - it is simpy database entries - it is the photos in the calendar that take space - and for most people you would wnat to keep those photos in your library
    you can use a photo in 50 calendars and it still is only one photo in your library - as I explained calenders do not exist as such - they are simply database entries telling iPhotop how to display the calendar - they take almost no space at all
    LN

  • I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    I have a mid year 2007 24 inch iMac and will be purchasing a new 27 inch Retina iMac, what is the easiest way to transfer the data and files from my old machine to the new one?

    Following up on this thread,
    I have a new iMac on the way and my current is from 2008, never had a problem but I am sure there are internal issues that I would prefer not to transfer.
    I have no issues other then the slowness in certain programs and that is the main reason to buy a new one.
    Programs like numbers and pages seem to take a longer time to open after I update to Yosemite.
    I only use 272GB of 500 GB, my memory is 4GB and I am upgrading to 8Gb and bought the 4.0 processor.
    Question:
    Is there a way to manually transfer items or would that be a waste of time in that if there are issues they could be anywhere and would transfer anyway?

  • What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www beginning of

    What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www to the beginning of the IP address.
    I usually can eventually access the router, but it is way to much trouble.  However, I use my iPad hundreds of times more often than my laptop.

    Are you typing http:// in front of the IP address of the router? e.g. http://192.168.0.1
    Sometimes, and with some routers it doesn't seem to like it if you miss off the http://

  • I have a new iMac. I have set up a user page for myself, for my wife and an administrator page. My question is my wife needs files from my user page transferred to her page. What's the easiest way?

    I have a new iMac. I have set up a user page for myself, for my wife and an administrator page. My question is my wife needs files from my user page transferred to her page. What's the easiest way?

    I've done this by dragging files from my user page to her drop box. In Finder, drag the required files and hover over the hard disc icon in the navigation bar on the left. As you hover, it will open another finder window showing the contents. Work your way down these windows into <Her username | Public | Dropbox>. Drop the files into the dropbox. She can then retrieve them from her user page.
    Good luck,
    Stephen

  • I have an Iphone 4 and want to copy my photos to my windows PC, what is the easiest way to do this?

    I have an Iphone 4 and want to copy my photos to my windows PC, what is the easiest way to do this?

    Your PC should recognise the iPhone as a camera and you can simply treat it as one.
    Programs like Photoshop can import photos from it or you can use Camera and Scanner Wizard to import instead.
    You can also double-click the iPhone in My Cmputer and drag and drop

  • I have a bunch of .pmd files that I have to have access to.. I am trying to convert to .pdf. what is the easiest way to do this with updated computers?

    I have a bunch of .pmd files that I have to have access to.. I am trying to convert to .pdf. what is the easiest way to do this with updated computers?

    Then you can’t do anything with those files. Even opening them in InDesign would yield very unpredictable results.
    You’d need to find an old machine running nothing later than Windows XP and then buy a copy of PM which is like lighting money on fire.
    That said, someone might come along willing to help out but just exactly how many is a bunch?

  • I have too much music for one ipod.  What's the easiest way to sync half of my library on to one ipod and the other half to another?

    I have too much music for one ipod.  What's the easiest way to sync half of you library on to one ipod and the other half on to another?

    Make playlists and choose whatever playlists you want to sync

  • What is the easiest way to transfer music from my ex's itunes library to mine? We both have Macbooks and we do have home sharing.

    Over the years my ex's and I bought tons of music off itunes, but always bought it on her Macbook. Now that we aren't together I want to copy all of the music from her itunes library and import it into mine. Is this possible, and what is the easiest way?
    Many Thanks

    the simplest way, assuming all your media files are in the default location, would be to connect the two Macs with a firewire cable, boot the source Mac in Target Disk Mode, and copy the entire iTunes folder (not just the iTunes music folder) from <MacintoshHD>/users/yourname/music on the source to <MacintoshHD>/users/yourname/music on the target (overwriting the iTunes folder in place there).
    that would ensure everything (including playcounts, ratings, original "date added", which home sharing doesn't copy over) will be transferred. it would also ensure that any mobile devices (iPhone, etc.) will simply keep on syncing without problems.
    you can also use an external HD (or your LAN) but make sure to copy the entire iTunes folder.

  • What is the easiest way to create and manage very big forms?

    I need to create a form that will contain few hundred questions. Could you please give me some advise on what is the easiest way to do that? I mean for example is it easier to create everything in Word (since it is easier to manage) and than create a form based on that?
    My concern is that when I will have a very big form, containing different kinds of questions and with many scripts, managing it during work will be slow and difficult, for example adding a question in the middle of the form which would require moving half of the questions down which could smash the layout etc.
    What is the best practise for that?
    Thanks in advance

    Try using Table and Rows for this kind of forms. These forms will have the same look throught with a question and and answer section..
    In the future if you want to add a new section, you can simply add rows in between..
    Thanks
    Srini

Maybe you are looking for

  • Error while deploying import project

    I am getting the following error while deploying the import project. I dont get any error while importing assets from the xls sheet. it successfully imports all the assets. It only gives error when i try to deploy this project. I have checked all the

  • Trouble installing HP Deskjet 722c on Windows 7 64-bit on a network

    Hi, I have a Windows 7 64-bit system and am trying to connect to an HP Deskjet 722c through a home network. My other Windows 7 PCs can connect and print to this printer (it is shared on the network via an old WinXP box) but when I try to install the

  • HT4623 i was updating my iphone 3gs to ios6.0.1

    im stuck as my phone is not working it isnt showing any network and isnt activating

  • POF Serialization for Exceptions thrown

    If any Java Exceptions are being thrown and this needs to be shown to clients in some proper way. How to make these Java Exceptions to be POF enable ? Is com.tangosol.io.pof.ThrowablePofSerializer is meant for this ? I can have my custom Exception cl

  • Multiple Document Types for PRs generated through PS Module

    How to create PRs with multiple Document Types as standard SAP allows to generate PR with only one Document Type? Thanks in advance for any help. Regards, Mohan