Tab Navigator not loading all tabs at start

I have a tab navigator with a dataGrid in one tab and another
dataGrid in another and when I double click the dataGrid in tab 1 I
want it to go to tab 2 and set the selected item or dataGrid1 to
dataGrid2. The problem is when I double click on the dataGrid, and
havent navigated to tab 2 before. This gives "TypeError: Error
#1009: Cannot access a property or method of a null object
reference." The tabNavigator's creationPolicy="all" and the
function that is called on doubleClick is
private function GotoNext():void{
if(firstDataGrid.selectedItem!=null){
myTabNavigator.selectedIndex=1;
secondDataGrid.selectedItem=firstDataGrid.selectedItem;
This works if I first click on the 2nd tab then click back on
the 1st tab, but not if I just double click.
Any help would be appreciated.
Thanks,
Chris

quote:
Originally posted by:
cjwprostar.
... The tabNavigator's creationPolicy="all" and ...
Here's a working example that has this problem..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
public var xmlOne:XML=
<root>
<data>
<name>Foo</name>
<type>Number</type>
</data>
<data>
<name>Bar</name>
<type>String</type>
</data>
</root>;
public var xmlTwo:XML=
<root>
<data>
<name>Foo</name>
<type>Number</type>
</data>
<data>
<name>Bar</name>
<type>String</type>
</data>
</root>;
[Bindable]
public var sourceOne:XMLListCollection=new
XMLListCollection(new XMLList(xmlOne));
[Bindable]
public var sourceTwo:XMLListCollection=new
XMLListCollection(new XMLList(xmlTwo));
public function GotoNext():void{
if(dgOne.selectedItem!=null){
tabNav.selectedIndex=1;
trace(dgOne.selectedItem);
trace(dgTwo.selectedItem);
dgTwo.selectedItem=dgOne.selectedItem;
trace(dgTwo.selectedItem);
trace("--------------------------");
]]>
</mx:Script>
<mx:TabNavigator id="tabNav" creationPolicy="all"
left="20" right="20" top="20" bottom="20">
<mx:Panel id="tabOne" label="Tab 1" width="100%"
height="100%">
<mx:DataGrid dataProvider="{sourceOne.child('data')}"
width="100%" height="100%" doubleClickEnabled="true" id="dgOne"
doubleClick="GotoNext();">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
dataField="name"/>
<mx:DataGridColumn headerText="Column 2"
dataField="type"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
<mx:Panel id="tabTwo" label="Tab 2" width="100%"
height="100%">
<mx:DataGrid dataProvider="{sourceOne.child('data')}"
id="dgTwo" width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
dataField="name"/>
<mx:DataGridColumn headerText="Column 2"
dataField="type"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:TabNavigator>
</mx:Application>

Similar Messages

  • Using tab groups but Firefox 28.0 crashes and even can not save all tabs in archive recently

    Hi. I installed tab groups addon on my firefox 28.0 (firefox portable version) and each group has its tabs. of course. Problem is that Firefox crashes when i work on a group with the tabs and even can not save all tabs in archive as MAFF recently too. When i try to save all tabs in archive as... i choose the name and hit save and wait but after some time this crashes too. Last time i saved all my tabs and groups as MAFF or other file was end of april and since then i can not save them anymore because of the crashing.
    I read on the help site to delete Firefox then reinstall ect. to fix problems but I DO NOT want to erase my groups with their tabs as i chose this solution working with group tabs as it would be to hard on my cpu when i use for each group a different browser for example.
    Please help me fix this problem with the crashes but without loosing my groups and its tabs as they are all important and do not wish to erase them as i use them all.
    Thanks and hope for a soon reply :)

    Can you give me your crash reports?
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.

  • Firefox opens but no content is shown, url says the website but the tab does not load up and says '(untitled)'. how can i fix this?

    firefox opens but no content is shown, url says the website but the tab does not load up and says 'untitle'. how can i fix this?
    == This happened ==
    Every time Firefox opened
    == after norton asked me to restart my laptop. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; eSobiSubscriber 2.0.4.16; .NET4.0C)

    Hi,
    Unfortunately we had a data base error today and lost some user accounts when we had to go back to our backups. If you have started this thread, your's is one of those. Since we can not recreate your account, please sign-up for a new account here to reply to the forum messages:
    https://support.mozilla.org/users/auth
    You can use the same username and email address as before. We are very sorry for the inconvenience.

  • With multi tabs open I go to close Firefox 5.0 and it will not keep the tabs there it closes all tabs

    With multi tabs open I go to close Firefox 5.0 and it will not keep the tabs there it closes all tabs so when I restart I have to re-open the tabs. I was using 3.6 firefox and had the option to close but keep the tabs so they would open when I re-started firefox.

    upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • Sometimes when I open a link in a new tab, the new tab does not load the link.

    Sometimes when I open a link in a new tab, the new tab does not load the link. This seems to be random.
    Win 7 64
    FF 4.0.1

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I open facebook or other site. right click link/photo to open in new tab quickly. Then all tab connection will be connection to website, all page stop loading. Have to close firefox and reopen then only site will load.

    I open facebook or other site. right click link/photo to open in new tab quickly. Then all tab connection will be connection to website, all page stop loading. Have to close firefox and reopen then only site will load.

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • Can I revert back to prior mozilla. 6.0 does not load all images

    many websites do not load all pictures and images since I updated to 6.0. Can I undo update?

    *Check the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    *Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    *Check the exceptions in "Tools > Options > Content: Load Images > Exceptions"
    *Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).
    If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    There are also extensions (Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images.
    *http://kb.mozillazine.org/Images_or_animations_do_not_load

  • ITUNES MOVIE DOES NOT LOAD ALL THE WAY

    "Skyfall" the movie will not load all the way through

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    Now launch your iTunes and see if it is working now.

  • My iphoto will not load, all it does when i open it is just show a blank iphoto and won't load any of my photos that were already in there.

    My iphoto will not load, all it does when i open it is just show a blank iphoto and won't load any of my photos that were already in there. Any way to fix it ?

    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • HT4914 I turned on iTunes Match, and subscribed; but it did not load all of my library. How can this be corrected so that I can recover all of my library?

    I turned on iTunes Match, and subscribed; but it did not load all of my library. How can this be corrected?

    iTunes Store: Subscribing to iTunes Match
    After looking through the above link, and still doesn't help then try this below:
    > iTunes Content: Downloading past purchases from App Store, iBookstore, and iTunes Store
    > Non-iTunes Content: Transfer them from a different iDevice or from USB flash drive and/or external hard drive.
    I don't use iTunes Match so I don't really know.
    Message was edited by: keeferaf

  • How different of PDF downloning with open in new Tab or not Open new Tab

    How different of PDF downloning with open in new Tab or not Open new Tab?
    My web site distributes PDF files,
    and user can download the PDF files in my site.
    The problem is I wanna show PDF that download in new tab,
    but pdf only downloaded, not open new tab.
    How to open new tab by downloading a PDF

    How different of PDF downloning with open in new Tab or not Open new Tab?
    My web site distributes PDF files,
    and user can download the PDF files in my site.
    The problem is I wanna show PDF that download in new tab,
    but pdf only downloaded, not open new tab.
    How to open new tab by downloading a PDF

  • Itunes will not load all photos

    Suddenly, my Ipad 3 will not load all of the photos that are in a folder onto the iPad into an album.  I have a folder of 58 images and iTunes recognizes that.  When I sync to add the images, itunes loads only 53 of them.  I have repeatedly attempted to sync and it keeps loading the 53 images.  I took the 5 images from the folder and put them in a new folder and Itunes will not load them.  These images are JPEG's and are not any larger of a file than the ones that did load.  I have even restored my Ipad and it still only will load the 53 images.
    I had this same problem the other day where out of 96 images, it would only load 76.  I have plenty of HD space available.  I am at my wits end.  All software is up to date now and still same issues so not sure what the problem is.  I've deleted the iPod Cache folders, have a fresh install of ITunes and still no luck.  HELP!

    You removed the cache from iPhoto - correct?
    MJ

  • Does not load all of page

    some pages i go to do not load all pictures, links, and buttons. they were working but shortly after upgrade they quit working. i have tried on other browsers and they work fine there. i have checked all settings and have done a clear on history and cookies. went though your help and not found anything that has helped. the link giving below is one of several web page am having trouble with this here is just log in screen here but it does not show the buttons or ling to continue. on other sites i go to it will not load the images and some of the links are missing.

    Try clearing your browser cache.
    Tools > Clear Recent History... - hit Details and make sure only Cache is selected, then select Everything and hit the Clear Now button.

  • After updating Firefox does not Load all it says XU.DLL not found

    after updating Firefox does not Load all it says XU.DLL not found

    xul.dll
    look here:
    https://support.mozilla.com/en-US/questions/754567
    https://support.mozilla.com/en-US/questions/756149
    thank you

  • There is no "add tab or + tab" and no "list all tabs" button. I'm also missing the add-on bar that is supposed to be at the bottom. I'd love to try all the features but it's hard to do without these options.

    The first day I downloaded Firefox 4, I had the "+" tab at the end of the tabs but after the first day, it disappeared so to open new tabs, I have to go to the Firefox tab on the left or use ctrl+t to open new tabs.
    The "list all tabs" button appears sporadically and today is completely unavailable.
    The add-on bar has never been available.
    The "feedback" button appeared the first day or so then disappeared, never to appear again!

    Create a new profile exclusively for the Firefox 4 version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

Maybe you are looking for

  • Change Default Page in Tab

    Hi all, I have Parent Tabs and Sub-Tabs in my application. Could anyone please show me how to change the default page under Tabs? Thank you.

  • 6575722.994:   ADDITIONAL BLANK TABLE CELLS ADDED IN RTF HEADER

    HI all, XML:5.6.3 APPS:11.5.10.2 Please advice, RTF template associated with PO Output for Communication (tempalte uploaded). When previewed, data displays correctly. When output is viewed from Application, additional blank table cells are added in h

  • Creative Zen Vision: M question - Deleting fil

    I had 923 files on my MP3 player, I wanted to add another 200 files. I had to delete all files in the MP3 player in the settings and information option and transfer 223 files again. I had to format the player in the tools option. I realise that all t

  • Difference between domain controllers and group policy objects in GPMC

    Hello, Am in confusion, someone can tel me the difference between 1.Domain controllers>default domain controller policy  and 2.Group policy object>default domain controller policy In Group policy management console and also i would like know where to

  • BW courses

    Hi, I have 3 yrs of experience in ABAP, I'd like to take courses in BI and make my way but confused to take the right ones... I saw SAP education services and I can take only 2 or 3 courses but must be a good start in BI : I don't know which of these