![]() |
How to apply formatting on data feeding AdvancedDataGrid
Hello All,
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]Code:
<mx:AdvancedDataGrid x="115" y="288" id="labelsGrid" designViewDataType="flat" dataProvider="{labelsGridArray}">I tried to do the following: Code:
<mx:itemRenderer>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;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 |
Well, making use of the labelFunction is definitely the way to go. But it's not clear from your post how you are using it.
Please post the mxml code for your data grid and the labelFunction you're written. |
Hi John,
Thanks for your quick reply. As requested, here is my AdvancedDataGrid definition in whole. I've not written the code yet for the labelFunction because I'm still having trouble putting everything in the proper scopes. Code:
<mx:AdvancedDataGrid x="115" y="288" id="labelsGrid" designViewDataType="flat" dataProvider="{labelsGridArray}">tag.ti.htmlText = formattedText; generates the following error: Access of possibly undefined property ti through a reference with static type mx.controls.advancedDataGridClasses.AdvancedDataGridColumn I've tried moving the function definition within the Hbox, but then the AdvancedDataGridColumn can't access it. Help! Bonnie |
| All times are GMT +1. The time now is 10:33 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.