Why the first AdvancedDataGridColumn in AdvancedDataGrid can not be disabled?

Hi,
I defined a AdvancedDataGrid control, and defined 2 column, the first the AdvancedDataGirdColumn display a name and second AdvancedDataGirdColumn display a checkbox, where the itemList is an array of item whose enable property is the itemRenderer's enable state.
But I found out that the enable state was not applied to first column.
If I add a dummy AdvancedDataGirdColumn, so the name becomes second column, then the enable state shows.
Anyone has the solution? Thanks.
Here is my code:
//nameRenderer.mxml defines a mx:Label to display name
<mx:Label id="name" height="18" enabled="{_data.enabled}" text="{_data.name}"/>
//checkboxRenderer.mxml defines a checkbox to select
<mx:CheckBox id="check" width="18" height="18" click="setInUse()" selected="{_data.selected}" enabled="{_data.enabled}"/>
//main mxml
var itemList:ArrayCollection = new ArrayCollection();
// adding item to itemList, where the item has a member - enabled
// AdvancedDataGrid component, here the enable state does not apply to name_col
<mx:AdvancedDataGrid id="mydatagrid" iconFunction="{null}" folderClosedIcon="{null}" folderOpenIcon="{null}"  >
    <mx:dataProvider>
         <mx:HierarchicalData source="{this.itemList}"/>
    </mx:dataProvider>
    <mx:columns>
          <mx:AdvancedDataGridColumn id="name_col" dataField="name" editable="false" itemRenderer="views.renderers.nameRenderer" draggable="false"/>
          <mx:AdvancedDataGridColumn id="checkBox_col" dataField="selected" editable = "false" itemRenderer="views.renderers.checkboxRenderer" width="18" headerText=""/>
    </mx:columns>
</mx:AdvancedDataGrid>
// AdvancedDataGrid component with the first column as dummy, here the enable state applies to name_col
<mx:AdvancedDataGrid id="mydatagrid" iconFunction="{null}" folderClosedIcon="{null}" folderOpenIcon="{null}"  >
    <mx:dataProvider>
         <mx:HierarchicalData source="{this.itemList}"/>
    </mx:dataProvider>
    <mx:columns>
          <mx:AdvancedDataGridColumn id="dummy_col" width="20"/>
          <mx:AdvancedDataGridColumn id="name_col" dataField="name" editable="false" itemRenderer="views.renderers.nameRenderer" draggable="false"/>
          <mx:AdvancedDataGridColumn id="checkBox_col" dataField="selected" editable = "false" itemRenderer="views.renderers.checkboxRenderer" width="18" headerText=""/>
    </mx:columns>
</mx:AdvancedDataGrid>

I'm not certain what the message meant, but it's posible that you still had an application open.

Similar Messages

  • Why the values of these parameters can not be listed?

    Why the values of these parameters can not be listed?
    SQL> show parameter nls_time_format;
    NAME                                 TYPE        VALUE
    nls_time_format                      string
    SQL> show parameter nls_date_format;
    NAME                                 TYPE        VALUE
    nls_date_format                      string

    qkc wrote:
    Do you mean the values are NULL? Why the default value not liested here.This is from my sandbox 10.2.0.4 database on linux. This was built just a few days ago and is absolutely default in all respects:
    SQL> show parameter nls
    NAME                                 TYPE        VALUE
    nls_calendar                         string
    nls_comp                             string
    nls_currency                         string
    nls_date_format                      string
    nls_date_language                    string
    nls_dual_currency                    string
    nls_iso_currency                     string
    nls_language                         string      AMERICAN
    nls_length_semantics                 string      BYTE
    nls_nchar_conv_excp                  string      FALSE
    nls_numeric_characters               string
    nls_sort                             string
    nls_territory                        string      AMERICA
    nls_time_format                      string
    nls_time_tz_format                   string
    nls_timestamp_format                 string
    nls_timestamp_tz_format              string
    SQL>Besides, it is a bad idea to depend on the defaults anyway. There are so many places they can be overridden that it is foolish for an app to depend on it. Rather, you should always be using (properly) the to_char and to_date functions to specify the formats at the individual sql statement. So the 'default' values become totally irrelevant.

  • Why the battery of my ipad can not be charged?

    I am facing problem to charge my ipad since two weeks (i baught it 2 years ago). 3 days to reach 49% of charge. Now, i can not charge it at all.

    Your iPad cannot be two years old. They came out on the market in Aplril 2010 as far as I can recall.
    Use the power adapter and plug it into a wall socket. Don't try to charge connecting to your computer. Try another cable as well. Yours may be defective. Try plugging into another wll socket.
    If all those dont help You can try to reset the iPad and see if it will charge - hold down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider. See if you can charge it now. 
    If none of this works you may need to restore your device.
    http://support.apple.com/kb/ht1414

  • I have an imac osx 5 mos.old. First time today I can not open my desktop folder/files. I need to read them. Message is: appleworks 6 quit unexpectedly. I need to read them. Is it possible that new software downloaded yesterday is problem?

    I have an imac osx 5 months old. For the first time today I can not open my desktop folders which are very important to me. How can I open these folders.
    The message when I click on the folder is "appleworks 6 quit unexpectedly". I can not open the folder. Is it possible that new software installed could cause the problem when I get the message "new softward available for your computer, install now. Maybe I should never install upgrade. Please help in layman's language how to open my folders. Thanks.

    X423424X wrote:
    The curious thing here is that on the one hand the code cannot be loaded so how could the trojan code be ever executed.  But you would expect the "Unexpectedly quit" message if the intel trojan did get executed in a ppc app.  So this begs the question when (and how) does the trojan code get executed in conjunction with launching an app?
    I understand code injected into a specific app like safari that uses the global environment variable to access the code in /Users/Shared.  But I don't understand how that code could be executed by attempting to run an randomly chosen ppc app.  Unless of course   other code has been injected is in a more critical place than just safari and that is scary.
    Some of this was explained to us a few weeks back by an infected user who reverse engineered the code, working with Intego to figure out why he was being re-directed on Google searches. At the time, nobody believed much of anything he was saying, but F-Secure explains it more fullly in this analysis. Note that there is a filter component to keep it from loading code into apps that would be unstable, so watch for the next variant to filter out ppc only apps.
    In a related matter, I got word from the PC side of the house that similar techniques are being used by drive-by infections that were injecting code into a running app which would disappear when they quit the app. A one-time infection, so to speak. Makes it really hard to even know you were temporarily infected, let alone how, why, what damage, etc.

  • German umlauts are not shown correctly, when a received e-mail is opened the first time. What can I do?

    When I open a received e-mail the first time, German umlauts (ä, ö, ü) are not shown correctly. Instead of them there are characters like §,$. When I close the e-mails and open them again the German umlauts are shown correctly. I don't know how to solve that problem. Who can help me?

    ''Zenos [[#answer-670786|said]]''
    <blockquote>
    Fascinating. Sounds like an inconsistency between the encoding being used and the encoding being declared. I can't think why it should change when you re-open the message, unless Thunderbird is adding a correct encoding declaration.
    (Most users complain about it working in the opposite direction; messages stored as drafts often restore with damaged "special" characters such as smart quotes, accented characters and umlauts.)
    </blockquote>

  • When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    When initiating an e mail to someone with several addresses used in the past the one I use most often does not come up in the first position.  How can I get these multiple e mails prioritized?

    We are talking about the Mail app, right? In the Mail menubar, click on Window and then Previous Recipients:
    That eliminates the previous recipients. If you are talking about the suggestions because there are 10 people with the name 'Steve' in your Contacts, then I do not know how to eliminate those unless you change the name slightly or wait until you type the last name or some other differentiator.

  • Why I bought the game it says it can not connect to itune.

    Why I bought the game it says it can not connect to itune.

    Hi nok555,
    I apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are saying that you are having issues connecting to the iTunes Store or App Store (for example, to buy a game or in-game purchase), you may find the troubleshooting steps outlined in the following article helpful:
    Can't connect to the iTunes Store - Apple Support
    On the other hand, if you are saying that you are seeing a Connect to iTunes icon screen on your device, then this article may be more useful:
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • Why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift

    why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift, please help me

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • HT5457 So can somebody please explain to me why the first gen iPad missed out on ios 6?

    So can somebody please explain to me why the first gen iPad missed out on ios 6?

    safrones wrote:
    Is that what you really believe?
    I don't know cause Apple decided for me.
    As does Microsoft anytime that they release a new update that is no longer compatible with the old PC hardware.
    I would hope that Microsoft and Apple would both know what operating systems will run on the hardware that is produced for them.
    I would also hope that Microsoft and Apple know better than you do as to what would work on their devices, tablets, computers, phones .... How much time and money have you put into research and development on the iPad?

  • Why has iTunes taken over the iPhoto file?  I can not attach pictures to files because I can not find them.  I can not upload pictures to software like Shutterfly for the same reason.

    Why has iTunes taken over the iPhoto function?  I can not attach pictures to files because I can not find them.  This has happened suddenly as if there were some keystrokes that changed the previous pattern. I am not able to upload pictures to programs such as Shutterfly because I can not find them.  When I try to upload, the computer takes me to an iTunes folder.

    How are you uploading?

  • Why after downloading a pdf am I getting that the file is corrupt and can not open?

    why after downloading a pdf am I getting that the file is corrupt and can not open?

    Probably the file got corrupted during the download?  Download it again.
    If that does not correct the problem, can you share that file download?

  • Suddenly slowed to move the icons began speech, press twice the emails etc while I can not unlock the card why do not I arithmologio

    suddenly slowed to move the icons began speech, press twice the emails etc while I can not unlock the card why do not I arithmologio

    I'm afraid the language translation program you used has let you down.  Can you rephrase your question (assuming you can understand me).

  • Why tuxedo7.1 or Tuxedo6.5 can not call the service on Tuxedo8.0 server

    Why tuxedo7.1 or Tuxedo6.5 can not call the service on Tuxedo8.0 server.
    I wrote the Server Application with Tuxedo version 8.0.
    And used tuxedo71 WS client to call the service.
    The client application displayd tpinit fail.
    ULog told me "prv7.1 not allowed,use -t option on wsl".
    Is there any way to solve this problem?
    thanks!

    risen,
    Yes there is a way to solve this. As the error message suggests, use the -t
    option on your WSL server. Look at
    http://edocs.bea.com/tuxedo/tux80/atmi/secadm10.htm#1284650
    [ I know this documentation is astonishingly well hidden! ]
    Peter.
    risen wrote:
    Why tuxedo7.1 or Tuxedo6.5 can not call the service on Tuxedo8.0 server.
    I wrote the Server Application with Tuxedo version 8.0.
    And used tuxedo71 WS client to call the service.
    The client application displayd tpinit fail.
    ULog told me "prv7.1 not allowed,use -t option on wsl".
    Is there any way to solve this problem?
    thanks!

  • I bought a HD and the Itunes Stores say that the movie (Pretty Women) has Itunes Extras. Why I can not find it? It is a mistake from Apple? What happen if I buy the movie because the Extras and now I can not watch it? I have an Ipad last generation.

    I bought a HD and the Itunes Stores say that the movie (Pretty Women) has Itunes Extras. Why I can not find it? It is a mistake from Apple? What happen if I buy the movie because the Extras and now I can not watch it? I have an Ipad last generation.

    What version of iOS do you have on your iPad (Settings > General > About > Version), and is it connected to wifi ?
    From Buy and play movies with iTunes Extras - Apple Support :
    Here’s what you need to stream the new iTunes Extras:
    Mac using OS X Mavericks v10.9.3 or later and iTunes 11.3 or later
    PC using iTunes 11.3 or later
    Apple TV (2nd and 3rd generation or later) using Apple TV software 6.2 or later
    iPhone, iPad, or iPod touch using iOS 8 or later (You need to connect to Wi-Fi. Extras won't appear if you're connected to a cellular network.)
    An active Internet connection
    You can use the steps below on your Apple TV, Mac, PC, or iOS device for any purchased, HD movie that features Extras:
    On your Apple TV, select Movies, then select your movie to see the Extras menu. Extras aren't available from the Computer tile on Apple TV (Home Sharing).
    On your Mac or PC, open iTunes and go to the Movies section in your iTunes library. Double-click your movie. If there's no Internet connection, the Extras menu will be skipped. The movie will immediately play if you already downloaded it.
    On your iPhone, iPad, or iPod touch, tap the Videos app, then tap your movie. If you're connected to the Internet via Wi-Fi, the Extras menu will appear.

  • I want to buy from the iTunes Store, and I can not why?, I want to buy from the iTunes Store, and I can not why?

    I want to buy from the iTunes Store, and I can not why?, I want to buy from the iTunes Store, and I can not why?

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here, we won't know why.
    What happens when you try to buy something, does the 'buy' button not work, do you get any error messages ... ?
    If you are getting a message to contact iTunes Support then you can do so via this link and ask them for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?

Maybe you are looking for