Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
flashharry! #1
Calling AdvancedDataGridSortItemRenderer with customheader
HI,
I have searched for a few hours now no luck...
I have an advanced datagrid, with a lot of columns showing small check mark
icon for boolean value.
To make the columns smaller, I made a simple headerRenderer that rotates the
labels 90 degrees, so they run vertical.
but I lose the sort arrow these columns.. Looking the docs
[url]http://livedocs.adobe.com/flex/3/langref/mx/controls/advancedDataGridClasses/Adv[/url]
ancedDataGridHeaderRenderer.html
under
sortItemRenderer
Note that the sort item renderer controls the display of the sort icon and
sort sequence number. A custom header renderer must include code to display the
sort item renderer, regardless of whether it is the default or custom sort item
renderer.
How do I call that from my code
<?xml version="1.0" encoding="utf-8"?>
<HBox xmlns="http://www.adobe.com/2006/mxml" verticalAlign="middle"
height="100"
horizontalAlign="center" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<Script>
<![CDATA[
[Embed(systemFont='Verdana', fontName='myVerdana',
mimeType='application/x-font', unicodeRange='U+0020-U+007E')]
public var myVerdana:Class;
import mx.controls.advancedDataGridClasses.AdvancedDataGr idColumn;
import mx.managers.SystemManager;
[Bindable] private var text:String;
[Bindable] private var src:String;
override public function set data(value:Object):void{
var col:AdvancedDataGridColumn = value as AdvancedDataGridColumn;
trace(col.headerText);
text = col.headerText;
}
]]>
</Script>
<Label id="headerLabel" text="{text}" fontFamily="myVerdana" rotation="90"
width="100%" height="100%"
/>
</HBox>
flashharry! Guest
-
Calling a CFFUNCTION?
I am working on a form that has 3 drop down selection boxes. What I need to have happen is this: Once the first selection (Category) is made, the... -
Calling an HTA from an HTA
Is this the best way to call an HTA from within an HTA? <script type="text/vbscript"> Option Explicit Dim objSHL Set objSHL =... -
Calling A C++ program
Hello All, I need to write a program to call a C++ program (mktrace). The program ask for an input file and then it ask for output file. I have... -
Calling TCL function from PHP 4.3
Hi all, I'm just picking up PHP, and am really appreciating the transition, however, I'm running into somewhat of a loggerhead. I'm trying to find... -
calling FindWindow from ASP.NET
FindWindow does not work as expected in services (such as IIS ). Because services are running under different account and different accounts are...



Reply With Quote

