Two item renderer for one datagrid column?

hi
i have one doubt
can we use two item renderer for one datagrid column
any possibilities
why i am asking this because
during drag and drop i need one itemrenderer and during application initialization i need another itemrenderer
any possibilities
karthik.k

Hi,
I think your requirement can be completed by using ViewStack you can pass selected index to it according to requirement.
See:
<itemRenederer ...
     <viewstack selectedIndex = 0 ...>
          <vBox id="vBox1" >
                    Your 1st itemrenderer will come here....
          </vBox>
          <vBox id="vBox2" >
                    Your 2nd itemrenderer will come here....
          </vBox>
     </viewStack>
</itemRenederer>
You have to just toggle selectedIndex.
Thanks

Similar Messages

  • Generic item renderer for Adv DG Columns?

    Hello,
    I'm trying to create a generic ItemRenderer for my Adv DG so that so that I can put a toolTip on the cells.
    The Adv DG Column object doesn't have a toolTip property so I'm creating my own renderer...
    As far as I'm aware I have to create an ItemRenderer that knows the fieldName that it is rendering so I can use {data.myFieldName}. I was hoping there was a property so that I can reference the value generically such as {data.text} but this obvisouly doesn't work...
    Is there anyway around this? Can I pass a paramater to the itemRenderer? I'm doing it like this...
    advancedDataGridColumn.itemRenderer = new ClassFactory(renderers.ToolTipFieldRenderer);
    Alsok, there is a toolTip property of the AdvDG but the columns, what is the AdvDG.toolTip used for? Just a general toolTip? The reason why I need a toolTip is our client has asked to be able to mouse-over the cell to see the full value where the field value is chopped because it's too long for the column...
    Hope that makes sense and hope you can help...
    Cheers,
    Nick

    The AdvancedDataGridColumn class has dataTipField and dataTipFunction
    properties and these are supported by the default item renderer
    (AdvancedDataGridItemRenderer), which is also generic. Here's an example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute">
      <mx:Script>
          <![CDATA[
             import mx.collections.ArrayCollection;
             private var dpADG:ArrayCollection = new ArrayCollection([
          ]]>
        </mx:Script>
        <mx:AdvancedDataGrid
            height="400"
            width="300"
            sortExpertMode="true"
            dataProvider="">
            <mx:columns>
                <mx:AdvancedDataGridColumn
                    dataField="Artist"
                    dataTipField="Artist"
                    showDataTips="true" />
                <mx:AdvancedDataGridColumn
                    dataField="Album"
                    dataTipField="Album"
                    showDataTips="true" />
                <mx:AdvancedDataGridColumn
                    dataField="Price"
                    dataTipField="Price"
                    showDataTips="true" />  
            </mx:columns>
       </mx:AdvancedDataGrid>      
    </mx:Application

  • Item Renderer for Advance DataGrid

    On AdvancedDataGrid, can we  display one of the column as Text and when the user clicks on the text it should turns into a combo box.
    When the user clicks on any where else it should turn into text back.
    Please help me to implement this.

    Off the top of my head it's probably something like:
    <mx:DataGrid id="dg1" width="100%" height="100%">
    <mx:columns>
    <mx:DataGridColumn dataField="Example">
    <mx:itemEditor>
    <mx:Component>
    <mx:ComboBox>
    <mx:String>1</mx:String>
    <mx:String>2</mx:String>
    <mx:String>3</mx:String>
    </mx:ComboBox>
    </mx:Component>
    </mx:itemEditor>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    edit:
    Just checked, Subeesh's example: http://blog.flexmonkeypatches.com/2008/02/18/simple-datagrid-combobox-as-item-editor-examp le/ has got a very good example on it. Pretty much exactly what you asked

  • Import Two Price Lists for one item

    Hi all,
    How we can import two price lits for one item and how to link it.
    For eg.
    Suppose Item A is having price 100 Rs today at 11 am
    and its price changes to 150 RS at 1 Pm.
    how we can do this.
    We also want to see the last price of that item.
    Reply
    Thanks,
    Neetu

    Neetu,
    What do you mean by changing?  Does the Item price flactuate throughout the day every day..if so you need to create a routine to import/update the pricelist constantly.
    If the 11 am and 1 pm are constant times when the prices change then you can maintain a pricelist for each one of them.
    Shooting for a solution without knowing the business background can be a bit wasteful.  If you might want to throw some light on the type of business and what the prices are for..
    I also see you have posted the same question earlier..Price Updation
    I would suggest that you post only one thread for one question.

  • Item renderer for specific rows

    I need to have a checkbox item renderer for a spark datagrid column. I am using the following to get an item renderer into column:
    var checkBoxRenderer:ClassFactory = new ClassFactory(GridCheckBoxItemRenderer);
    column.itemRenderer = checkBoxRenderer;
    My question is if I need to show a checkbox for specific rows can I do that without going into GridCheckBoxItemRenderer's source code?
    Thanks

    Hi Zolotoj ,
    Please go through following links :
    http://stackoverflow.com/questions/1952940/show-itemrenderer-in-specific-datagrid-rows-oth ers-empty
    http://www.flexer.info/2009/01/09/different-rows-in-datagrid-programmatically-added-itemre nderers-classfactory-and-ifactory/
    It will provide you some idea to how to proceed further for this problem.
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Bank Transfer file: generate two outgoing files for one pmt method?

    Hello Experts,
    Two files (header and item) are expected from the hungarian bank for each payement.
    It's possible to generate two outgoing files for one pmt method using DMEE tree? If yes, can you tell me how?
    If not, there is an other solution? Use a classic program (copy and adaptation) for example?
    Thank you in advance.
    Amal

    Are you sure you need separate files file header and items.
    Usually both header and items are placed in the same file. Please reconfirm or get the formats from the Bank.

  • Can we create two dashboard prompts for the same column in the samepage

    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideas

    863997 wrote:
    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Hiding item renders in Group Datagrid Label Rows?

    I have an Advanced data grid displaying a grouped collection.  I have an item renderer in one column the is a canvas with a button that is bound to the data.
    However, buttons are also showing on the header rows, where they are not needed (see below).  How do I fix this?

    I have an Advanced data grid displaying a grouped collection.  I have an item renderer in one column the is a canvas with a button that is bound to the data.
    However, buttons are also showing on the header rows, where they are not needed (see below).  How do I fix this?

  • Can you have two iCloud accounts for one Apple id?

    Can you have two iCloud accounts for one Apple id?

    the appleID is you in the ios world if you have an iphone and an ipad and an Ipod touch and an appletv and a mac then you should use 1 appleID on all of them it does not mean the same data is on all of them unless you want it to be

  • To enter two VAT numbers for one vendor in the same country

    Hello All,
    When we try to enter two VAT numbers for one vendor in the master record and belongs to the same country, the system is not allowing and gives the following message,
    "VAT reg.no. already exists for country BE"
    Message no. F2140
    Kkindly let me know the way to proceed further.
    Many thanks in advance.

    Hello,
    Go to OBA5 and switch off the message for online and batch entries.
    If the message is already not there in OBA5,
    Then go to OBMSG and switch off the same.
    Application Area F2
    Message No.140
    Regards,
    Ravi

  • Two Mobile Server for one Backend ?

    Hi,
    we need two Mobile Server. One for internal access and one for external access.
    Is it possible to have two Mobil Servers for one backend system and can I sync all the config between this two servers ?
    Regards,
    Gerald

    Hi
    Yes, you can mirror on the hardware,DB and OS level.
    This is not possible with your mobile server.
    <i><b>One for internal access and one for external access</b></i>
    For external access you can expose one of the IP's as a static IP and for internal Access you dont need to expose it.
    If you are planning to have two Servers then you will have to get as many licenses from SAP.
    PS: reward points for helpful answers
    Regards
    Arun

  • Can we make two shipment cost for one outbound delivery

    Hi team,
    Can we make two shipment cost for one outbound delivery?
    Need your suggesstions.
    Regards
    Venkat Ramana

    Hi
    I do not think that you will get a reply now as it has been too long.
    Maybe the answer is not known.
    However as the forum is growing and it takes so much time to get through all of the pages it would be nice to keep it current so could you please close your thread and either re-open a new one (this might help as people are more likely to look at curret ones) or try another forum.
    This will make life easier for everyone
    Regards
    Frenchy.

  • Two deliveries required for one sales order

    Hello Friends,
    I have a quirey , I have two types of goods in one sales order, one is dangerous goods and other one is normal. How ever we are thinking to make two seperate deliveries even they are in one sales order. How can two diff deliveries gets created.
    We are planning to create new shipping point with new loading group for the dangerous goods .
    Will the above decision works or is there any simplest way to create two auto deliverys for one sales order.
    Reg.

    Hi all,
    I have yet another proposal - using copy control and adding there dangerous goods profile LIPS-PROFL as split criterial. This field is populated originally from material master MARA-PROFL field.  You can check for example routine FV50C201. Split criteria are defined in likp-zukrl field.
    I think that is better solution then introducing new shipping point. Because there are some determinations and dependencies related to shipping points. So the more shipping points you have, the more additional config you have. If it is needed by business to have separate shipping points - then fine. But if the goods are shipped from the same place, then I would rather modify copy control instead of multiplying config and master data. I say duplicated effort in master data - because with 2 shippiong points you would need to maintain DG profile field and additionally loading group.
    Kind regards
    Witek Prawecki.

  • Suprisingly two Processes running for one database

    Hi all,
    Today morning in one of our database servers, we see two processes running for one database.
    COBLpo05 11949 1187 0 Mar 25 ? 37:50 ora_smon_BLINDEA1
    COBLpo05 7789 1187 0 Mar 25 ? 5:35 ora_smon_BLINDEA1
    Can anybody suggest me what is the reason behind it and what to do in this case?
    Thanks in Advance.

    The ORACLE_HOME may have been set twice with differents values in it (i.e. extra slash) before starting twice the same db.
    Please, have a look to this article from Ivan Kartik :
    http://ivan.kartik.sk/index.php?show_article=40
    And depending of your OS, you could check what ORACLE_HOME is used for each process :
    How to Check the Environment Variables for an Oracle Process*
    Doc ID:  373303.1*
    Nicolas.
    added the metalink note ref.
    Edited by: N. Gasparotto on Sep 4, 2009 11:34 AM

  • Multi-Use Item Renderer for DataGrid Column

    I have a dataGrid where the first column of the grid displays
    an icon for the 'type' of item in the row. I created a custom
    itemRenderer component which I reference in its own namespace, and
    everything works great. Since this is a pretty common concept, I'd
    thought that I'd be able to re-use that itemRenderer throughout the
    application, but everytime I try to call the itemRenderer in
    another dataGrid, I get 2 errors saying "the inlineComponent could
    not be found" and then because of that "Access of undefined
    property".
    It doesn't make sense for an itemRenderer to be only good for
    one use, so I'm obviously missing some fundamental issue. Can
    someone enlighten me?

    Hah, found it. It is an mxml example, and implements
    IDropInListItemRenderer. It for an image renderer, but you will be
    able to see what to do.
    Tracy
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="center" verticalAlign="middle"
    width="16" height="16"
    implements="mx.controls.listClasses.IDropInListItemRenderer"
    >
    <mx:Script><![CDATA[
    import mx.controls.listClasses.IDropInListItemRenderer;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.DataGrid;
    [Bindable]
    private var source:String;
    private var _listData:BaseListData;
    public function get listData():BaseListData
    return _listData;
    public function set listData(value:BaseListData):void
    _listData = value;
    invalidateProperties();
    override protected function commitProperties():void
    super.commitProperties();
    if (_listData is DataGridListData)
    var dgld:DataGridListData = _listData as DataGridListData;
    source =
    data[DataGrid(dgld.owner).columns[dgld.columnIndex].dataField];
    ]]></mx:Script>
    <mx:Image source="{source}"/>
    </mx:VBox>

Maybe you are looking for