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 5843199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:07:17+00:00 2026-05-22T12:07:17+00:00

I’m using the Halo AdvancedDataGrid component, in which the default itemEditor for each column

  • 0

I’m using the Halo AdvancedDataGrid component, in which the default itemEditor for each column is mx.controls.TextInput.

For example, the data provider is:
[CODE][Bindable]
private var labelsGridArray:Array = [ { tag:”apple” }, { tag:”*banana” }, { tag:”carrot” } ];[/CODE]
And the AdvancedDataGrid definition is:
[CODE][/CODE]

If a String from the dataprovider Array is preceded by an asterisk – as is the case for banana in this example – the String needs to be surrounded by square brackets and be displayed in a grey colour.

I tried to do the following:
[CODE]

A colleague told me about using the AdvancedDataGridColumn’s labelFunction attribute. I tried that but was unable to do the following assignment (the id of the column is ‘tag’):
[CODE]tag.itemEditor.htmlText = formattedText;[/CODE]

I get error “Access of possibly undefined property htmlText through a reference with static type mx.core:IFactory.

I tried to both explicitly extract the TextInput itemEditor (like I did for the override set data) AND use the labelFunction, but I couldn’t get both to be in the correct scopes.

Your help is much appreciated,
Bonnie

  • 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-05-22T12:07:18+00:00Added an answer on May 22, 2026 at 12:07 pm

    Try creating your own itemRenderer / itemEditor.

    This would be your datagrid:

    <fx:Script>
        <![CDATA[
            [Bindable] private var labelsGridArray:Array = [ { tag:"apple" }, { tag:"*banana" }, { tag:"carrot" } ];
        ]]>
    </fx:Script>
    <mx:DataGrid dataProvider="{labelsGridArray}" >
        <mx:columns>
            <mx:DataGridColumn headerText="Name" itemRenderer="NameItemRenderer"/>
        </mx:columns>
    </mx:DataGrid>
    

    And this would be your itemRenderer/editor (NameItemRenderer.mxml)

    <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                          xmlns:s="library://ns.adobe.com/flex/spark" 
                          xmlns:mx="library://ns.adobe.com/flex/mx" 
                          focusEnabled="true">
    <fx:Script>
        <![CDATA[
    
            override public function set data(value:Object):void{
                super.data = value;
                if(value.tag.indexOf("*")!= -1){
                    lblData.text = "[" + value.tag + "]";
                    lblData.setStyle("color",0xFF0000);
                }
                else{
                    lblData.text = "" + value.tag ;
                    lblData.setStyle("color",0x000000);
                }
            }
        ]]>
    </fx:Script>
    <s:Label id="lblData" top="0" left="0" right="0" bottom="0"/>
    

    I have used a normal mx:Datagrid and a spark MXDataGridItemRenderer for this, but the way it works will be the same for the AdvancedDataGrid. All you need to do is override set data()

    Cheers

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.