How to refresh a Spark list manually?

Hello

I'll build a News Module, which consists of a DataGrid and a spark with a customItemRenderer list.

When I click on the item in the DataGrid control, I get the 'newsID' of the item clicked and receive the newsDetails associate my data in an ArrayCollection collection.

This table Collection is the dataprovider for my spark list.

Okay, well, when I click on the first point, nothing works like it supposed to be.


But when I click the second entry, for example, the list of the spark is not following and display the changed data but the ArrayCollections are updating of data.

I checked in the binder to an another DataGrid that owns the ArrayCollection as a DataProvider collection.

So my question now is to know how to manually refresh a list of Spark.

On google I found that someone suggested to set the ItemRenderer of the spark to null list and re - declare.

http://www.mail-archive.com/[email protected]/msg132923.html

How would I do this programmatically?

= null myList.itemRenderer and that?

My custom item converter is called HListRenderer.mxml

Any help is very appreciated

Marc

Try:

myList.itemRenderer = null;

Group1.itemRenderer = new ClassFactory (HListRenderer);

See the latest example of code here:

http://flexponential.com/2009/11/02/different-ways-of-assigning-an-item-renderer-in-Flex-4 /.

Tags: Flex

Similar Questions

  • How smooth through a spark list using the mouse wheel

    I have my list Spark smooth scrolling kindly if I take the thumb of the scroll bar and drag it. But when you use the mouse wheel, the itemrenderer in itemrenderer jump.

    Is it possible to get this smooth scrolling?  I use a list with variableRowHeight = true.

    Thank you.

    This thread shows how to customize the mouse scroll wheel:

    http://forums.Adobe.com/message/2783736

    An improvement has recently been added which will allow to customize the behavior without the need to subclass.  See this bug for details:

    http://bugs.Adobe.com/jira/browse/SDK-26432

  • How to refresh list files in PSE9?

    Since there is no way to create a new folder within PSE9 organizing I often do so using Windows Explorer. However, the files in the Organizer menu tree does not automatically refresh to display the new folder. How can I refresh the folder list to view changes made outside the Organizer? Thank you.

    Hello

    I can create folders by right-clicking and select new folder, using F5 is refresh - that does not work for you?

    Brian

  • How to animate a dataGroup spark list when the user travels through elements?

    How can I get the dataGroup have an effect when the user travels through the list?

    I came across this example that uses a HGroup:

    olling-through-items-in-a-spark-hgroup-container/ http://blog.flexexamples.com/2009/11/11/Creating-an-Animated-transition-when-SCR

    .. who is the exact effect I would like a list.

    Taking the example of HGroup you posted you can do something similar with a spark list by animating the position of scroll on the page layout:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" >
       
            Import spark.core.NavigationUnit;
               
    protected function scrollToThere(dir:int):void {}
    var value: Number = listLayout.getHorizontalScrollPositionDelta (dir);
    If (value! = 0) {}
    pth.valueBy = value;
    Anim.Play ();
    }
    }
    ]]>
       

       
       
           
               
                   
               

           

       

       
       
    horizontalCenter = red '0' = '0' >
           
               
           

           
           
           
               
                   
               

               
                   
                       
                           
                       

                   

               

               
                   
                        one
                        two
                        three
                        four
                        five
                        six
                        seven
                        eight
                        nine
                        ten
                        Eleven
                   

               

           

           
       
       

  • ADF MOBILE: how to add an item in the list without refresh the entire list

    Hello

    I am using this method to add an item to a list (I've already added the item to the data model):


    providerChangeSupport.fireProviderCreate (String providerKey, int newRowKey, object newValue);


    I don't want refresh the entire list, rather, I want to just add a new item to the list, that's why I want to use this method.


    I want to know, what value should I use for the second argument? i.e. 'int newRowKey '.


    Thank you


    Hello

    the event of change of provider in your case seems to actually create a new line. So the int is the rowKey (index PK or line) of the new line. There is no other choice to simply add an element to a list (ADF Mobile provides no component handles)

    See: Embedded Java/ADF for beginners: ADF Mobile: refresh your valuable data

    Frank

  • How to dynamically add data in a Spark list control

    Hi, I have a spark list in one of my custom components() control(id="Cclist") and a text input control. When a value is entered in the entry of the texts, I want to dynamically add the same in the list control. I tried to do the following:

    protected function Cc_selectHandler(event:CustomEvent):void

    {

     var cctext:DisplayObject = event.data as DisplayObject
    CcList.enabled = true;
    CcListButton.enabled = true;

    CcList.addChild(cctext);

    }

    But I get an error saying "addChild() is not available in this category.  "Instead, use addElement(), or change the skin. So I tried to use addElement, but apparently it is not available at all. No idea what im doing wrong?

    Add the text entered in the textinput to the dataProvider of the list in the appropriate format.

    A simple example:

    
    
        
            
        
    
        
            
        
    
        
            
        
        
        
        
    
    
  • How to refresh Hyperion application after you migrate Essbase database?

    I want to copy my planning application from one machine to another (with exactly the same operational systems)
    I did it by database Archive

    1. on the original machine
    EE: Application-> database database->(Right click menu)

    2 copied the file archived on the target machine

    3 on the target computer
    create THE SAME application in hyperion planning and done as follows
    EAS:application-> database database->(Right click menu) Resrore

    @Refresh succeeded to @.
    And changed the outline in EAS

    But nothing changes in the planning application. How to refresh the planning scheme?
    Thanks in advance

    John is correct, I totally missed the detail that you archived of essbase database and makes the automatic assumption that you had saved/archived planning of the SQL database.

    The "schema" in a planning application is 'stored' in planning using the SQL repository. The Essbase outline is the analytic representation of this sketch of planning.

    To really migrate a planning application, in a way or another, you must copy the repository SQL planning in the application you are setting up, and then refresh to Essbase so going this route.

    Sorry for the confusion

    Kind regards
    Robb Salzmann

    SSO

    FWIW, here is a list of the major steps that I used in the past to migrate 9.3 - 11 Planning (manually):

  • Backup Application Essbase, perform the export level 0
  • Backup database to Application Planning
  • An inventory of safety, dimensions, performance parameters, forms and States
  • 11, create the new application with the same Types of Plan, same currency and set of business rules
  • Stop planning in the 11 database object, move, to re-create the database object and import 9.3 database
  • Apply upgrade SQL scripts
  • ALTER table to reflect the version and Shared/Server location
  • Start the Application and validate the inventory
  • Import level 0 in Essbase
  • Test

  • Windows Media Player 12: How to permanently display the list pane

    Windows Media Player 12: Always list

    Hello world

    I've recently updated my computer to Windows 7.

    When I was on XP, the list of WMP 11 component was always displayed in the right part of the screen (except mode full-screen).
    Now WMP 12, I have to manually right-click and choose "View list" whenever I open WMPand whenever a new video starts .

    Could you tell me how to permanently display the list pane?

    Thank you

    Kind regards
    Phil

    There is no way to get or retain the component 'list' in Windows Media Player 12. You must create a playlist to see your playlist.

    I've been playing with this for hours trying to get the same thing your tyring to get.  Microsoft has changed a lot in the Windows Media Player 12 version. The latest version of the windows media player 11 is the only version that can display the playlist pane.

  • How to refresh the entire screen?

    Hello

    Please can someone tell me how to refresh the entire screen?

    Refresh here means clear all fields and show empty fields.

    Thank you

    Afonso Tyagi

    Hey,.

    as I usually do, is to create a separate function that manually assigns to each field and property reverts to its original state. There is not a function that does it for you. You must create your own. hope that helps good luck!

  • How can retrieve us a list of the current source of session and server desktop manager VDI admin console or view?

    Hi all

    How can we extract the list of the current source session and Desktop Manager console or view VDI server. I did it via the administration console VDI himself (just copied VDI console URL and passed to the Excel file), but it poses problem in the conf file and generates the error and change the refresh value o-1 (for this reason our VDI console was not showing the list of users in the means of the pool when we clicked on any pool he went into the suspended state) I fought for this problem since a week and after a lot of research on the VMware site, I found the error and the solution but I solved the problem, but now I again reqiured a list of computers disconnected and connected and ready.

    The thing is that I need to know

    How many users is connected or disconnected?

    How many office are ready assined to a bot user does not use them?

    I have the plan hurt get the list and stops the virtual machines that are in ready state, then it will improve the performance of the VDI cluster.

    Is there any problem so ill stop the virtual machines that are in the ready state.

    Thanks in advance!

    Pradeep K Yadav [email protected] administrator VMware & VDI

    Why do you the work by yourself?

    Use the Provisionigs parameter to stop the unused VMs in order of time / disconnect or logoff.

  • Custom spark list control

    I have a spark list control that displays a dynamically imported Images tilelayout.  Basically, a bunch of thumbnail Images that appear in a tile layout.  I slipped active so that I can reorganize these thumbnails and everything works great except for one thing, the who.  In my itemrenderer I included Image in the State "dragging", but the image does not appear in the who.  I'm basically just has a square semi transparent like my, but I want to be able to actually drag my sticker.  Any ideas how to do this?

    Here is my list:

    < s:List id = "ImageList1" x = "77" y = "95" width = "858" height = "412" dataProvider = "{imageAC}".

    itemRenderer = "converters. ImageACSmallItemRenderer"contentBackgroundColor ="0x000000 ".

    borderVisible = 'false' dragEnabled = "true" dropEnabled = "true" dragMoveEnabled = "true".

    allowMultipleSelection = "true" skinClass = 'skins. General.ListSkin' focusAlpha = '0' mouseMove = "getImageProxy (event)" >

    < s:layout >

    < s:TileLayout columnWidth = rowHeight = "76" "76" horizontalAlign = "center" verticalAlign = "middle".

    horizontalGap = "8" verticalGap = "8" / >

    < / s:layout >

    < / s:List >

    Here's my Itemrenderer:

    < fx:Script >

         <! [CDATA]

    import mx.utils.ObjectProxy;

    [Bindable]

    public var dataProxy:ObjectProxy;

    private function init (): void {}

    dataProxy = new ObjectProxy (data);

              }

         ]]>

    < / fx:Script >

    < s: states >

    < s: State name = "normal" / >

    < s: State name = "flat" / >

    < s: State name = "selected" / >

    < s: State name = 'slide' / >

    < / s: states >

    < mx:Image source = "{dataProxy.pathSmall}" horizontalCenter = red "0" = "0" includeIn = "normal, hovered, selected, dragging" / > "

    < / s:ItemRenderer >

    Thanks for any idea!

    Hi Bill,

    Looks like you create a new object for each ItemRenderer ContentCache, to create a single instance shared, add "static" like this:

    static public var contentCache:ContentCache = new ContentCache();
    

    This will ensure that the contentCache variable is shared between all of the ItemRenderers.

    In addition, in my view, there is no need to explicitly call the contentCache like this:

    contentCache.load(dataProxy.pathSmall);
    

    Fixing the contentCache just the contentLoader on the Image property, the way you have done should be sufficient.

    I just do a quick experiment and here is an example with an ItemRenderer that exposes the problem:

    
    
        
    
    
    

    And here's workaround with contentCache (works well for me in the AIR):

    
    
                    
    
        
    

    See you soon,.

    Evtim

  • spark list removeChildAt error

    I am trying to remove an item from the spark list books as follows:

    books.removeChildAt (books.selectedIndex);

    but I get an error when I run the method:

    Error: removeChildAt() is not available in this category. Instead, use removeElementAt() or change the skin, if you have a.

    they do not compile if I use removeElementAt() as the s:List does not have this method. I do not have a skin to change either.

    How can I delete the item in the list? Thanks - brandon

    remove the item from the dataprovider of the list.

    list.dataProvider.removeItemAt(list.selectedIndex);
    
  • Spark list component Icon property?

    in Flex 3.x the VBox property was property of the icon that you can use to set the images in the elements of the list as well as the label property. How can I get the same thing in a Flex 4 spark list component?

    I would like something like 'iconField' property set to the list item, so that my itemrenderer can be generic and not worry for a specific type of object is passed in.

    Thank you!

    ~ Mike

    I have the subclass would list, add an iconField property and change the default

    renderer a converter custom will check data [iconField] for a

    icon and display it.

  • return data to spark list itemrenderer

    Everyone is not how to return data from the itemrender for a spark list. say I had a checkbx in my itemrenderer how can we retrieve this info to my component principal if his selected or not. I looked on the datagrid itemeditor but I really use rather a spark list. Thank you

    Hello

    itemRenderer should be used only as RENDERER. All chenges must be made in the data.

    So if there is a check box, you must add click eventListener and change the property in the data to see whether he is selected.

  • How can I see the list of authorized computers (not how)?

    Hello

    I would need to see the list of computers that are allowed before removing all permissions.

    How can I see the list of the authorized computers (not how I have)?

    Thank you

    There is not one available from your end.

    (144073)

Maybe you are looking for

  • Satellite A100-192: after Vista installation HARD disk capacity has decreased

    I am a user of Satellite A100-192 with 120 GB hard drive. After I installed Vista Ultimate, I saw this total capacity of my hard drive completely passed to 92, 8 GB instead of 120 GB while it was XP. What can be the problem? How can I reach the other

  • Need help with the Support Assistant for TouchSmart 310

    I tried to install the latest version of HP Support Assistant manually by searching on the HP customer service and it removed the previous version first. Nothing happened thereafter. I thought it would open HP Support Assistant after agreeing to term

  • How to configure on Mac for HP Office jet 4620

    I just download drivers HP for Mac OS X 10.9.3. How to set up so I can scan to my MacBook Pro?

  • Need for a method to be called when the pop-up screen

    Hello I have a requirement in my application. I have a screen from which I'm moving to screen B. When I Pop the screen B, I need a method that must be called in the screen has. Looks same as onActivityResult() in Android. I am currently using onExpos

  • Possible to have layouts more than 2500pt?

    I use pretty much all the tools of prototyping on the iPad, and Comp CC must be my absolute favorite. However, it seems that I can't have page layout (canvas) which are longer than 2500pts of Web page layouts. Most web pages are now long scroll and i