Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:14:53+00:00 2026-06-12T17:14:53+00:00

The dataProvider of my datagrid is an arrayCollection with 2 columns. The first column

  • 0

The dataProvider of my datagrid is an arrayCollection with 2 columns. The first column of the arrayCollection contains true or false (so that the checkbox is selected) and the other column contains the tags, this means that the arraycollection does not contain the actual string to be displayed on each checkbox. The tags that need to be used will fetch the label from an XML file. So the labels will come from an XML file.

The XML file is as such :

<tags>
 <tags1>CheckBox Label 1</tags1>
 <tags2>CheckBox Label 2</tags2>
 <tags3>CheckBox Label 3</tags3>
</tags>

Hence believe I will need to use ‘labelFunction” attribute on the DatagridColumn. Is this the way to be used so that I can show the label on each checkBox in the datagrid?

The code for my datagrid is as such:

<mx:DataGrid id="myGrid" dataProvider ="myDP" showHeaders="false" headerHeight="0">
                    <mx:columns>

                        <mx:DataGridColumn headerText="" dataField="IS_ACCESSIBLE">
                            <mx:itemRenderer>
                                <fx:Component>
                                    <mx:HBox horizontalAlign="left">
                                        <s:CheckBox id="mycheckBox"/>
                                    </mx:HBox>
                                </fx:Component>
                            </mx:itemRenderer>
                        </mx:DataGridColumn>

                    </mx:columns>
                </mx:DataGrid>

Can anyone help me with this issue?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:14:54+00:00Added an answer on June 12, 2026 at 5:14 pm

    I have been able to set the label attribute of the checkbox as such :

    label= “{outerDocument.myXML.tags[data.tags]}”

    Using the [] and the “data.tags”, which actually come from the dataProvider of the datagrid solves this problem. This make the last part of the variable dynamic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on creating a datagrid that has a checkbox column. I have some
I have a datagrid with an XML object as dataprovider. There are 2 columns
I have a datagrid in my mxml file, say, samp.mxml. <mx:DataGrid id=taskDataGrid dataProvider={initDG} variableRowHeight=true
I've got an ArrayCollection which is properly displayed in this Advanced Datagrid: <mx:AdvancedDataGrid id=drawingDataDG
I have a Datagrid that gets its data from an ArrayCollection of model beans.
I have a Datagrid with an ArrayCollection as DataProvider, the arrayCollection is partially generated
I am using ArrayCollection as the dataprovider to my datagrid and retrieving the information
On one PC, I have a datagrid with dataprovider being an arraycollection populated by
I have an ArrayCollection filled with 'o' objects. This AC should be the dataProvider
My Flex datagrid automatically scrolls to the top when I update the dataProvider (ArrayCollection).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.