ItemRenderer overides the DataGrid styles

Hi,
I have a CSS file where I have defined the styles for DataGrid like following:
DataGrid
      selection-color: #243E4F;
      text-selected-color: #FFFFFF;
      alternating-item-colors: #DCE3E8, #FFFFFF;
I have a Datagrid in my mxml component page. I use an ItemRenderer for the html text in one of my datagrid column.
<mx:DataGridColumn dataField="AccountName" headerText="Name" width="122">
                <mx:itemRenderer>
                  <mx:Component>
                      <mx:Text selectable="true" htmlText="{data.AccountName}" width="100%"/>
                </mx:Component>
                </mx:itemRenderer>
</mx:DataGridColumn>
But now when I select any of the DataGridColumn 'AccountName', the font color (ie. text-selected-color )  in this cell turns black.
Please help me to resolve this issue?
Thanks in advance,
Micheal

Hi,
Thank you for your quick response.
My DataGrid is inside a HBox.
//my component mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" >
    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.collections.ArrayCollection;
            [Bindable]
            public var cashData:ArrayCollection = new ArrayCollection();
            private function formatBalance(item:Object, column:DataGridColumn):String
                return item.Balance.currencyCode+''+item.Balance.amount;
        ]]>
    </mx:Script>
    <!--<mx:CurrencyFormatter id="currFmt" currencySymbol="$"/>-->
    <mx:DataGrid width="100%" height="100%" id="gridID" dataProvider="{cashData}" showHeaders="false" verticalGridLines="true">
        <mx:columns>
            <mx:DataGridColumn dataField="AccountName" headerText="Name" width="122">
                <mx:itemRenderer>
                  <mx:Component>
                      <mx:Text selectable="true" htmlText="{data.AccountName}" width="100%"/>
                </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
            <mx:DataGridColumn dataField="Balance" headerText="Balance" labelFunction="formatBalance" width="122" textAlign="right"/>
        </mx:columns>
    </mx:DataGrid>
</mx:VBox>
Actually I set the dataprovider from PureMVC mediator. You can see that column 'AccountName' is an 'htmltext'. This value will be a link not a editable text.
ie. <span class="xyz"><a href= "someurl.do?x=20106650&amp;y=10232371"><strong>details</strong></a><br/><span class="caption">Intranet Card</span></span>
Thanks,
Michael

Similar Messages

  • When to use the DataGrid (and not the AdvancedDataGrid)

    Hi All,
    I've got a new project I'm working on and I've just been using the plain ol' DataGrid to display a grid of data.  But I understand that with Flex 3 they introduced the "AdvancedDataGrid" which is, erm, more advanced.  Hence the name.
    Is there any reason why I might want to continue using the DataGrid?  Or should I convert my existing DataGrid to an AdvancedDataGrid?  I think that it should be a pretty easy conversion, just change a few tag names.
      -Josh

    The AdvancedDataGrid has more overhead than the DataGrid. If your application is sensitive to slowdown, you'd want to stick with the DataGrid unless you specifically need the features of the ADG (multi-column sorting, grouping, cell styles, etc.)
    The notable exception is, in my experience, using the ADG's styleFunction callback is faster than applying an ItemRenderer to the datagrid. So if you need to style individual cells, the ADG is the way to go even if you don't need the additional functions.

  • ItemRenderer in a datagrid column   setStyle() does not do anything to the appearance

    I have a custom ItemRenderer in a datagrid column, however
    the setStyle() does not do anything to the appearance. when it is
    called. Any ideas?
    <mx:DataGridColumn dataField="area" width="50"
    headerText="Area">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text>
    <mx:Script>
    <![CDATA[
    override public function set data( value:Object ) : void {
    super.data = value;
    setStyle("Color",0xff0000);
    if(data.area == 'G'){
    setStyle("backgroundColor",0xff0000);
    }else{
    setStyle("backgroundColor",0xff0000);
    ]]>
    </mx:Script>
    </mx:Text>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

    Your renderer code looks a little strange. This works, and
    may get you started:

  • The itemRenderer CheckBox of Datagrid displays incorrect sometime.

    The itemRenderer CheckBox of Datagrid displays incorrect
    sometime.
    A datagrid has a column:
    <mx:DataGridColumn headerText="selectMe" editable="true"
    dataField="_selected" itemRenderer="{new
    ClassFactory(mx.controls.CheckBox)}"
    rendererIsEditor="true" editorDataField="selected"/>
    There are serveral records which have been get from database.
    the records all are unchecked. after I checked some records , then
    refresh the data from database, the checkBoxs will display
    incorrect sometimes.
    any suggestion?
    thanks.

    It occured frequently. What can I do?

  • Find the itemRenderer components in Datagrid

    Hi,
    I have defined my itemRenderer for a DataGrid with different
    components like Checkbox, button etc according to the input.
    I would like to access the components from the application
    like dg.chkbox.
    Is it possible to do that??
    Thanks in advance...

    Hi John,
    I think u can not access directly
    .but through itemRollOver event of datagrid u can access the
    item renderer of particular column.
    I think It will help you.
    Megha

  • Spark datagrid style by row

    I'm trying to change the style of spark datagrid rows based on data, I've found examples about itemrenderer and columns, but they doesn't fit in this case.
    I'm looking for a method to change font (weight, size, color) and background based on data value: if the data in column X is equal to Y, change all the row style to...

    So, are you saying you want to change the font of a particular row when its data object is a certain value?
    I would have a custom renderer with an overridden prepare method. In the prepare method, you can check the data and adjust the labelDisplay accordingly.

  • How To Update Custom ItemRenderer (Image) on DataGrid Edit

    I have an DataGrid with 2 columns, column 1 called "Name" and column 2 called "Actions".
    The "Name" column contains editable text and the "Actions" column uses a (inline) custom ItemRenderer which displays 2 icon images ( for Edit and Delete). All works fine. Clicking Edit or Delete calls the corrosponding outerDocument method.
    The feature I am trying to add is as follows: when someone double-clicks on the text in the Name column to edit it, I would like the edit icon in the Actions column to ( grow/shrink, change color  - or some such indication/reminder to click it ). Not seeing how to do this with the inline ItemRenderer, I created a custom item renderer class and, in that class, use mx:Resize to perform the "grow/shrink". I created a method called "pulse()" and, from within that renderer, all works well. ( for testing, I wired the icons click event to the pulse() method ). However, now I am not sure how to call that ItemRenderers "pulse()" method to perform the effect from the main DataGrid (when the user double-clicks on Name field to edit).
    The tried using the DataGrid's "itemEditBegin", which fires correctly, but from that point I am not sure how to access the selected rows edit icon in the "Action" column. ( to call its pulse() ) method.
    So any suggestions how I can achieve my end result? Being able to manipulate the edit icon in the "Actions" column, when the user double-clicks (edits) that row's "Name" column?
    If I'm going about it all wrong, feel free to offer alternative solutions.
    Any help would be appreciated.
    Thanks,
    ~e

    Hi,
      Check the  BAPI_MATERIAL_SAVEDATA ,in the BAPI  is there a table parameter EXTENSIONIN ?
    which you can use to pass the values for user defined fields to the BAPI..
    Regards
    Kiran Sure

  • DropDownList ItemRenderer within Flex Datagrid Not Refreshing

    I have a datagrid which contains a Spark dropdownlist that needs to  obtain dynamic data.
    The datagrid uses a separate dataProvider.
    When I use a static ArrayCollection within my ItemRenderer, it works (please see listing 1).
    However, when I use Swiz to mediate a 'list complete' event to load  the ArrayCollection, the dropdownlist does not show the new data (please  see listing 2).
    Using the debugger, I inspected the dropdownlist ItemRenderer and  have confirmed the new data is being loaded into the ArrayCollection.
    The new data is not shown in the UI control. I have tried  invalidateProperties() + validateNow() and dispatching events on both  the control and the renderer (this), but nothing seems to make the new  data appear in the control on the datagrid.
    Please help !!!
    Listing 1: Datagrid and static ArrayCollection (this works)
    <mx:DataGrid x="10" y="25" width="98%" id="dgInventory" paddingLeft="25" paddingRight="25" paddingTop="25" paddingBottom="25"
                         editable="true"
                         itemClick="dgInventory_itemClickHandler(event)" dataProvider="{acInventory}"
                         creationComplete="dgInventory_creationCompleteHandler(event)"
                         height="580">
                <mx:columns>
                    <mx:DataGridColumn headerText="Item" dataField="itemName" itemRenderer="components.ItemRendererItem"
                                       rendererIsEditor="true" editorDataField="selection" editable="true"/>
                    <mx:DataGridColumn headerText="Quantity Required" dataField="quantityReq" itemRenderer="components.ItemRendererQuantityRequired"
                                       rendererIsEditor="true" editorDataField="selection" editable="true"/>
                </mx:columns>
    </mx:DataGrid>
    <fx:Script>
        <![CDATA[      
            import mx.collections.ArrayCollection;
            import spark.events.IndexChangeEvent;
            public var selection:int;
            [Bindable]
            protected var acItem:ArrayCollection = new ArrayCollection(
                [   { itemName: "Item1"},
                    { itemName: "Item2"},
                    { itemName: "Item3"},
            protected function dropdownlist1_changeHandler(e:IndexChangeEvent):void
                selection = e.newIndex;
        ]]>
    </fx:Script>
    <s:DropDownList id="ddlItem" prompt="Select Item" dataProvider="{acItem}" labelField="itemName"
                    selectedIndex="{int(dataGridListData.label)}"
                    change="dropdownlist1_changeHandler(event)"
                    width="80%" top="5" bottom="5" left="5" right="5"/>
    Listing 2: Dynamic ArrayCollection (does not work):
    <?xml version="1.0" encoding="utf-8"?>
    <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[      
                import event.ItemEvent;
                import mx.collections.ArrayCollection;
                import mx.events.FlexEvent;
                import spark.events.IndexChangeEvent;
                public var selection:int;
                [Bindable]
                protected var acItem:ArrayCollection = new ArrayCollection();
                protected function dropdownlist1_changeHandler(e:IndexChangeEvent):void
                    selection = e.newIndex;
                protected function ddlItem_creationCompleteHandler(event:FlexEvent):void
                    var eve : ItemEvent = new ItemEvent( ItemEvent.LIST_ITEM_REQUESTED );
                    dispatchEvent( eve );
                [Mediate( event="ItemEvent.LIST_ITEM_COMPLETE", properties="acItem" )]
                public function refreshness( _acItem : ArrayCollection ):void
                    acItem.removeAll();
                    var len:int = _acItem.length;
                    if (len > 0)
                        for (var i:int=0; i < len; i++)
                            var newItem:Object = new Object;
                            newItem["itemName"] = _acItem[i].itemName;
                            acItem.addItem(newItem);
                    this.invalidateProperties();
                    this.validateNow();
                    //dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
            ]]>
        </fx:Script>
        <s:DropDownList id="ddlItem" prompt="Select Item" dataProvider="{acItem}" labelField="itemName"
                        selectedIndex="{int(dataGridListData.label)}"
                        creationComplete="ddlItem_creationCompleteHandler(event)"
                        change="dropdownlist1_changeHandler(event)"
                        width="80%" top="5" bottom="5" left="5" right="5"/>
    </s:MXDataGridItemRenderer>

    After re-reading Peter Ent's ItemRenderer series, this turned out to be quite simple.
    I extended DataGrid to have the ArrayCollection property I needed, then added this to my renderer:
    [Bindable]
                protected var acItem:ArrayCollection = new ArrayCollection();
                override public function set data( value:Object ) : void
                    super.data = value;
                    acItem = (listData.owner as MyDataGrid).itemList; // get the data from the renderer's container (by extending it to add a property, if necessary)

  • How to display HyperLink on the DataGrid Component  column  data.

    Hi ,
    I am able to display customer data on to the DataGrid with the help of a ArrayCollection,
    Similar as shown :
    <mx:columns>
    <mx:DataGridColumn dataField="customerid"  headerText="Employee ID"
                       itemRenderer=""/> 
          </mx:columns>
    Please tell me what should be the value inside the itemRenderer to make the customerid display as an HyperLink ??
    I am struck up mx.controls.----?? value on to the itemRenderer 
    Please suggest .
    Thanks in advance .

    And Following is answer for http://forums.adobe.com/thread/630928?tstart=0
    <mx:DataGridColumn headerText="Employee ID"
    editorDataField="text" dataField="customerid"
    itemRenderer="mx.controls.TextInput" editable="true"/>
    Just replace TextInput--->YPaticular  controll(LinkButton)
    please help to answer this
    http://forums.adobe.com/thread/630962
    Happy codding....

  • How to bind an itemRenderer to a datagrid

    I have a datagrid that uses an itemRenderer. The itemRenderer contains a checkbox. I want the selected checkbox in the datagrid to stay in the correct row when the datagrid is sorted, but when I sort a column the checkbox moves to the wrong row. How do I bind the checkBox to the datagrid? I tried playing around with the following 2 lines of code in the itemRenderer, but without success:
    //super.data = value;
    //dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
    Thanks for looking.
    Here is my main file:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]               
                private var initDG:ArrayCollection = new ArrayCollection([
                    {Artist:'aaa', Album:'1', Price:3},
                    {Artist:'ccc', Album:'2', Price:2},
                    {Artist:'bbb', Album:'3', Price:1},
                    {Artist:'ddd', Album:'2', Price:4}
            ]]>
        </mx:Script>
        <mx:DataGrid id="myGrid" dataProvider="{initDG}"       > 
            <mx:columns>
                <mx:DataGridColumn dataField="Artist"/>
                <mx:DataGridColumn dataField="Album"/>
                <mx:DataGridColumn dataField="Price"/>
                <mx:DataGridColumn itemRenderer="RendererDGImage"/>
            </mx:columns>      
        </mx:DataGrid> 
    </mx:Application>
    Here is my itemRenderer:RendererDGImage.mxml
    <?xml version="1.0"?>
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                private var myVal:Boolean=false;          
                public function checkSelected():void {     
                    myVal= ! myVal
                override public function set data(value:Object):void {   
                       //super.data = value;
                        if (myVal){
                            trace("true")
                          myCheckBox.selected=true;
                        } else {
                            trace("false")
                            myCheckBox.selected=false;
                    // Dispatch the dataChange event.
                    //dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
            ]]>
        </mx:Script>
          <mx:CheckBox id="myCheckBox" enabled="true"  click="checkSelected();"/>
    </mx:HBox>

    I would create an object let's say.. Album.. that has four properties.. and create instances of this object based on the length of the arrayCollection..
    and..
    [Bindable]
    public var album:Album;
    public function checkSelected():void {    
                    album.Buy = myCheckBox.selected.
    change this too..
    <mx:CheckBox id="myCheckBox" enabled="album.Buy"  click="checkSelected();"/>
    and finally..
    override public function set data(value:Object):void {  
                       album = (value as Album);
    hope this helps,
    BaBo,

  • Tooltip show forever until the mouse exists the datagrid column header

    Hi,
    Any idea on showing tooltip forever until the mouse exists the datagrid column header.
    Thanks
    Atul

    Hi JamieVJohnson,
    Please specify the
    GroupStyle.Panel to the
    DataGridRowsPresenter in DataGrid, since the default GroupStyle.Panel (StackPanel) cannot fit for the DataGrid Width "*" and the columns collapse.
    <DataGrid Height="100">
    <DataGrid.GroupStyle>
    <GroupStyle>
    <GroupStyle.Panel>
    <ItemsPanelTemplate>
    <DataGridRowsPresenter/>
    </ItemsPanelTemplate>
    </GroupStyle.Panel>
    <GroupStyle.ContainerStyle>
    <Style TargetType="{x:Type GroupItem}">
    </Style>
    </GroupStyle.ContainerStyle>
    </GroupStyle>
    </DataGrid.GroupStyle>
    <DataGrid.Columns>
    <DataGridTextColumn Header="Column 1" Width="2*"/>
    <DataGridTextColumn Header="Column 2" Width="1*"/>
    </DataGrid.Columns>
    </DataGrid>
    Sincerely,
    Bob Bao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Are you looking for a typical code sample? Please download
    all in one code framework !

  • Access inline RadioButton within itemRenderer in a DataGrid

    I have a RadioButton column in a DataGrid. I added the RadioButtons in this way:
    <mx:DataGrid id="dg" x="0" y="25" width="510" height="260" selectedIndex="0" dataProvider="{department.prof}" showHeaders="false" itemClick="handleClick(event);" >
          <mx:columns>
              <mx:DataGridColumn headerText="Selection" dataField="selection" width="75" >
                   <mx:itemRenderer>
                          <mx:Component>
                                 <mx:VBox>
                                     <mx:RadioButton id="rb" />
                                 </mx:VBox>
                          </mx:Component >
                   </mx:itemRenderer>
              </mx:DataGridColumn>
              //Other <mx:DataGridColumn> go here. Their inline components' contents are provided with the dataProvider="{department.prof}"
         </mx:columns>
    </mx:DataGrid>
    I want the RadioButton in the clicked row is selected and others are unselected using the handleClick(event) function:
    private function handleClick(event:ListEvent):void {
            var s:Object = event.itemRenderer.data['name']; // dataProvider is a mx:Model in XML form and there is a <name> sub element under <prof>
            Alert.show(event.rowIndex + " clicked "+s['last']); // I can access the String content in <last>
            // How do I access all the RadioButton in the DataGrid? I do not have a key
            // (event.itemRenderer.data['Selection'] as RadioButton).selected = true; this is NOT working as 'Selection' is just a Column title, not a key.
            // the RadioButton id 'rb' is also NOT working: rb[event.rowIndex].selected = true;
    <?xml version="1.0"?>
    <department>
      <prof>
        <name>
          <first>Mike</first>
          <last>Smith</last>
        </name>
       </prof>
    </department>
    I also tried a RadioButtonGroup for all the RadioButton's in different rows, but it does not work.
    Thanks for any suggestions...

    For these kinds of things, I separate the code out more. You could create another object where you create all your radio buttons as the DataGrid needs them. Add a method to the Object that allows you to retrieve the correct radio button from the List and then set it as selected or not selected based on what row you have identified that should change.
    I do this with DataGroups a lot. For instance, if I have a scroller where I have a bunch of items that have custom renderers, I build all custom items individually in AS (or MXML and AS), store them in ArrayLists and then I tell the object that created them to update them whenever I need to. This will cause for some more coding, but it solves the problem and once you've done it once, you should be able to reuse.
    Here is an example of an item renderer where I do what you are trying to do:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    autoDrawBackground="true">
        <fx:Script>
            <![CDATA[
                private var isChecked:Boolean = false;
                private var imageHeight:uint = 75;
                private var imageWidth:uint = 100;
                private var videoID:String;
                private var cbLabel:String;
                public function getIsChecked():Boolean {
                    return isChecked;
                 * You can use this if need to from outside. This
                 * object also checks and unchecks itself.
                public function setIsChecked(isChecked:Boolean):void {
                    this.isChecked = isChecked;
                    fcvCheckBox.selected = isChecked;               
                public function setVidImage(vidImage:Image):void {
                    vidImage.height = getImageHeight();
                    vidImage.width = getImageWidth();
                public function getImageHeight():uint {
                    return imageHeight;
                public function getImageWidth():uint {
                    return imageWidth;
                public function setVideoID(videoID:String):void {
                    this.videoID = videoID;
                public function getVideoID():String {
                    return videoID;
                public function setCBLabel(cbLabel:String):void {
                    this.cbLabel = cbLabel;
                    fcvCheckBox.label = cbLabel;
                public function getCBLabel():String {
                    return cbLabel;
                public function setVidTitle(vidTitle:String):void {
                    fcvVidTitle.text = vidTitle;
                    fcvVidTitle.toolTip = vidTitle;
                public function setVidDescription(vidDescript:String):void {
                    fcvVidDescript.text = vidDescript;
                    fcvVidDescript.toolTip = vidDescript;
                private function updateChecked():void {
                    this.isChecked = fcvCheckBox.selected;
            ]]>
        </fx:Script>
        <s:HGroup>
            <mx:Image id="fcvVidImage"
                       height="{getImageHeight()}"
                       width="{getImageWidth()}"/>
            <s:Label id="fcvVidTitle"
                     text=""
                     width = "80"/>
            <s:TextArea id="fcvVidDescript"
                        editable="false"
                        width="80"
                        height="{getImageHeight()}"
                        />
            <s:CheckBox id="fcvCheckBox"
                        label="{getCBLabel()}"
                        click="{updateChecked()}"/>
        </s:HGroup>
    </s:ItemRenderer>
    Here is me adding the renderer to a Scroller:
            public function setPanelData(panelData:ArrayList,
                                         checkBoxLabel:String                                    
                                         ):FeedConfigVideoScroller{           
                videoScroller = new FeedConfigVideoScroller();
                for(var i:uint = 0; i < panelData.length; i++) {
                    var o:Object = panelData.getItemAt(i);
                    var videoID:String = String(o.videoId);
                    var videoTitle:String = String (o.videoTitle);
                    var videoDescript:String = String(o.descript);
                    var posterURL:String = String(o.posterURL);
                    var fcvLayout:FeedConfigVidLayout = new FeedConfigVidLayout();
                    fcvLayout.setVideoID(videoID);
                    var image:Image = new Image();
                    image.source = posterURL;
                    fcvLayout.setVidImage(image);
                    fcvLayout.setCBLabel(checkBoxLabel);
                    fcvLayout.setIsChecked(false);
                    fcvLayout.setVidTitle(videoTitle);
                    fcvLayout.setVidDescription(videoDescript);
                    videoScroller.addFCVLayoutComp(fcvLayout);
                return videoScroller;
    Now, because I've used OO and I've added all renderers to an ArrayList, I can get down to the individual components any time I like and do anything to them that I want.

  • Open a popup window by clicking the icon on the datagrid

    I am using PopUpManager class to displayed the popup. While clicking the datagrid popup will display.
    Now i have a change in requirement that i need to open popup window when the user clicks the icon on the datagrid itemrenderer. Expecting valuable response to complete the requirement.

    Hi David,
    Thanks for the prompt response.
    In our application, while clicking the datagrid column, we have calculate
    some values based on the datagrid and show the results in the another
    datagrid placed below. Also if the user wants some info about the customer
    we have some it in a popup by
    private function custPopUp(event:ListEvent):void {
    if(event.columnIndex==3){
         hiddenActionpopup = "OpenPopUp";     
         requestPopUp.send();                    
    }else
              // when the user clicks the column other than columnIndex 3,
    we      //have show the calculate results in another datagrid.
    Now what we r going to do is, instead of protecting a column, we have an
    icon for customer details, other than that If an user clicks anywhere it
    will show the calculation.
    For that, I need to set action for the icon in the itemrenderer.
    Thanks in Advance.
    Jude Paul
    hi
    If you want have an action dependendant on a cell in the grid you can use
    itemclick rather than doing the operation from renderer.
    protected function dataGrid_itemClickHandler(event:ListEvent):void
       if (dg.columns[event.columnIndex].dataField =="whatever the datafieldname
    is") doPopup();
    <mx:DataGrid x=0" y="0" width="100%" height="100%" id="dg"
    itemClick="dataGrid_itemClickHandler(event)"/>
    David.

  • How can i change the default sort Arrow Color in the datagrid?

    How can i change the default Sort Arrow Color in the
    datagrid? i didnt found any style properties to change the sort
    arrow color, i know it can be do it in flex 1.5 but how to do it in
    flex2?

    Type about:config in the address bar. Find browser.download.dir and change it to the path you want. Remember that Android has a linux base so the path will similar to /mnt/sdcard/downloads/

  • Change ItemRendere Properties in DATAGRID

    Hi,
    I created a DATAGRID with some Itemrenderers in it.
    I am trying to change the properties of itemrendere on
    rollOver of DATAGRID.
    code:
    Code:
    <mx:DataGrid id="dataGrid" dataProvider="{targetProfiles}"
    itemRollOver="onItemRollOver(event)"
    itemRollOut="hideMenu(event)">
    <mx:columns>
    <mx:DataGridColumn id="nameCol" dataField="Name"
    headerText="Name"
    itemRenderer="components.itemrenderer.labelName">
    </mx:DataGridColumn>
    <mx:DataGridColumn id="description"
    dataField="Description"
    headerText="Description" />
    </mx:DataGrid>
    code for ITem Renderer
    Code:
    <?xml version="1.0"?>
    <!-- dpcontrols/adg/myComponents/ChartRenderer.mxml -->
    <mx:VBox height="65" width="100%" xmlns:mx="
    http://www.adobe.com/2006/mxml"
    verticalAlign="middle">
    <mx:HBox paddingLeft="20" paddingTop="5"
    verticalAlign="bottom">
    <mx:Label text="{data.Name}"/>
    </mx:HBox>
    <mx:HBox horizontalAlign="right"
    verticalAlign="bottom">
    <mx:Button id="options" text="Options"
    visible="false"/>
    </mx:HBox>
    </mx:VBox>
    Now what am trying to do is.. On rollOver and rollOut of
    particular row in datagrid i want to make that Button in Itemrender
    visible true/false(on selected row).
    Any idea how to identify the itemRenderer on rollOver of
    grid????
    Thanks & Regards
    Pratap

    Hi,
    Try handling rollOver event of the item renderer instead of listening on the DataGrid.
    Hope this helps.

Maybe you are looking for

  • Service Goods Receipt in SBP 20005 A PL10

    Hi, I would like to know, is the Good Receipt document post any Journal Entries if its of type 'service.' I have tested the 'item' type and it definately posts a JE, I need to confirm what postings the 'service' type is supposed to post, if any?

  • Strange problem with sms

    Hi, I am in a big problem here so please help me. My problem is that i have an app that sends sms and it used to work well, but when passed to some devices they dont send anything. Now the same app was deployed to a blackberry curve and it sends the

  • Quite interesting situation....

    Hey guys, so I have an older LGA 775 Intel processor for my desktop and I am having a little situation: Modern computer monitors do not work. I have tried using a workstation graphics card (Quadro 600) and I have tried using a consumer graphics card

  • Project folder missing

    I have been working on a project in FCPX for a couple of weeks. I was storing everything on an external hard drive and it seemed to be loading fine. The program itself lagged a lot, and was very slow on rendering, but it was workable. Yesterday it cr

  • Initial Aperture Organization

    I have been using a MBP and MBA for while now, but I just decided to migrate my primary desktop from a PC to a 27" i7 iMac. Along with this comes a change to my photography tools. I am planning to switch to Aperture... even though I am not a pro. It