Scrolling DataGrid problem

Hi again,

With the help of beta 3. I have a DataGrid with a series of pieces of information on this subject. When the user selects an item in the grid, I have a canvas that I show on the bottom third of the grid that gives details about the selected item. The problem is I want the element of grid selected to become the first visible item in the grid. This is particularly important in cases where the user selects an element that is in the bottom third of the grid and which is covered by the canvas when they select this item.

So, is it possible to force the scroll of a DataGrid?

Thanks, Jim

It's very close. I'm trying remember what to verticalScrollPosition value. I'll post if I can understand it.

Ah, try
DG1.verticalScrollPosition = dg1.selectedIndex

Tracy

Tags: Flex

Similar Questions

  • Scroll bar problems

    Two side scroll bar problems occurred in the last two weeks:
    (1) on the internet, I can only scroll one click at a time.  To go faster, I have for the up & down arrows.
    (2) on the internet, I can scroll as fast as I want.  But when I try to scroll lists like the small images in my images or icons of programs in the programs "Ininstall", I can only scroll to the bottom of the screen shows.  If I try to scroll any further, the screen appears in the original screen.  The only way I can get points listed below, is to change them in a list.
    None of these problems occur on WORD or Excel.
    Anyone have any ideas?
    Don Lake

    Hello

    Seems that you have an add-on or something interfering with the scrolling feature.

    Start - all programs - Accessores - system tools - IE with no Addons - does this work better?

    Follow these steps:

    IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK

    IE - Tools - Internet Options - Security tab - click on reset all default areas - apply / Ok

    Close and restart IE or IE with no addons

    not better?

    IE - tools - manage Addons (for sure disable SSV2 if it is there, it is no longer necessary but Java always install
    "(and it causes problems - you never update Java to go back in and turn it off again)." Search for other possible problems.

    Windows Defender - tools - software explore - look for problems with programs that do not look right. Permit
    are usually OK and "unauthorized" are not always bad. If in doubt about a program to ask about it here.

    Could be a free - BHOremover - BHO - standalone program, needs no installation, download and run
    http://securityxploded.com/bhoremover.php

    Startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Update of Java (besure to go back and disable SSV2 Addon)
    http://www.Java.com/en/

    What antivirus/antispyware/security products do you use? That were ALREADY on your computer
    as remnants can cause strange problems.
    Rob - bicycle - Mark Twain said it is good.

  • Flex4 DataGrid - mouse outside the data keeps scrolling DataGrid grid

    Hello

    the DataGrid control has the following behavior: when you click on the DataGrid control and move the mouse upwards on top of it and hold the mouse on top of it, the guard UPWARDS scrolling DataGrid control. When you move the mouse under the bottom of the data grid, the DataGrid scroll guard DROP.

    I am optimize my app for touch devices, and when the user moves his finger on the DataGrid from the bottom to the top, I left the DataGrid scroll in the same direction, which is in DECLINE. If the user now moves his finger beyond the upper limit of the data grid, the DataGrid changes the direction of scrolling.

    How can I avoid scrolling the DataGrid when the mouse moves outside, or how change the direction of scrolling the DataGrid?

    Thanks in advance

    LLD

    You can have to subclass DataGrid and override the dragScroll method.

  • Flex datagrid problem - reward $20

    My Datagrids do not seem to work as I expect.
    The biggest problem is that resize the column seems to not be very intuitive, directly on the line of demarcation resizes the SizeableTitleWindow parent who can actually shrink the table with the window, if I'm on the side of the line, but always with the resizing slider, it seems to resize most of the time as expected , but I need it to work as expected for people without training to enter on the side.

    It also seems that if I resizing the SizeableTitleWindow parent and this force the DataGrid to shrink smaller than the datagrid control "wants" it causes a "box" white to hang on the side and bottom of the SizeableTitleWindow size, she wants to be, this also happens if I scroll the grid with my mousewheel without resizing , this seems bad whe I try to show my client that I built.

    I'll pay $10, via paypal, to the first person who offers a solution for each of these problems.

    If YES, you need SizeableTitleWindow in support of resize by itself, so please update the 258 of the SizeableTitleWindow.as line in the protected method function resizeDownListener(event:MouseEvent):void

    A:
    If (cursorStyle! = cursorSizeNone & cursorStyle! = cursorSizeAll)

    Must be:
    If (cursorStyle! = cursorSizeNone & cursorStyle! = cursorSizeAll & event.target == this)

  • PAVILION NOTEBOOK 15 K7Q21EA #: SCROLLING WINDOWS PROBLEM AFTER BIOS UPDATED 10 (08/03/2016) PAVILION 15 YESTERDAY 16/10/2016

    CANNOT CONTROL THE SCROLLING. CURSOR DOWN TO THE LOW WHAT MAKES IMPOSSIBLE TO SAVE TO A FOLDER

    Hi @STICKMAN5124,

    Nice day! Thank you for your participation in the Forums of HP Support! It is a great location to get resolutions and interact with experts from the community. It will be a pleasure to help you.

    I saw the post and understand that after only a bios updated cursor drops down due to a problem of scrolling.

    Impressive work, do the update of the bios. Kudos to you for this. It is a privilege to work with tech-savvy and technically competent customers like you and we greatly appreciate your business with HP. You have been great to work with.

    Please check in F2 diagnostics if the scrollbar works correctly. If Yes, then you can update the chipset drivers and http://hp.com/drivers touchpad drivers you can also consult with a mouse external further isolate the issue.

    You can also run diagnostics on the touchpad from this link by going to the UEFI F2 diagnostics: http://support.hp.com/in-en/document/c03467259 please run the complete components. If any component fails, please note the failure code. This is done to determine if the problem is hardware or software partners.

    If it passes and scrolling works very well, please perform these updates. If you are still having the same problem on page F2 UEFI (screen) then you could roll back bios after performing a hard reset. Link for the hard reset: http://support.hp.com/us-en/document/c01684768

    • Please perform this step to roll back bios.  Hold down the "Windows" key and the letter "B" at the same time, then press the power also button for about 5 seconds at the same time.

    I hope this helps. I would like to know how this happens. I hope the problem is solved without hassle and the unit works very well.

    Just to say thank youPlease click the ' Thumbs Up ' button to give a Kudos to appreciate my efforts to help me. If it helps, Please mark this "accepted Solution" because it will help many other people with the same problem to get it resolved without hassle.

    Now carefully and have a wonderful week ahead.

  • Shaky video: scroll & Menu problems on Thinkpad SL510 laptop Windsows Seven 64-bit computer 2847CZU

    Hello.

    I have a nearly four year, laptop Lenovo Thinkpad SL510 2847CZU Windows Seven 64 bit with 4 Express Chipset Mobile Intel graphics which has developed a problem with scrolling and pulling upward from the menus.

    For example when I put the cursor inside the Accuweather radar map that zooms automatically everyone. Also when I try to pull up a menu inside a page it flashes but will not come to the top. The same thing happens when I right click to display a menu.

    This isn't a problem with the Chrome browser. It also occurs in the pages of Start Menu and the Device Manager property.

    I can control that a little bit by using the CTRL key, but not in all cases. Scroll the entire page generally works very well even if there are earthquakes.

    I did the usual things to try to solve this problem. Uninstall (and reinstall) the graphics driver didn't work because the problem was still there with the VGA mode. I searched a stuck key or other problems with pointing devices, but the arrow keys of the keyboard are the same image.

    I tried an external monitor and finally to load a live DVD Linux, but these attempts did not lead to a solution.

    So far, it's just an inconvenience, but it might stop me from doing the things that involve a large number of menus.

    I hope someone can solve this problem. Otherwise, I am very satisfied with the products of Thinkpad.

    Best regards

    Ron

    Have you tried disabling hardware acceleration for the web browser? It fixed for me in all scenarios.

    Alternatively, you can try to force Vsync.

  • 0 line ListBox and vertical scroll bar problem

    Hello

    I tried to do simple VI where I can check the items in the Listbox control. My problem is that when I click anywhere on the buttons with the triangles, the mouse down or the vertical scroll bar of the event triggers and check the item in the line 0.

    Is this a problem or is it just a mistake in the code?

    For some reason, I'm not able to fix VI, so block diagram is below.

    Thanks for any help.

    I use LV 2010.

    Duri

    Here's a demo VI, who manages the selection listbox like that with a single click.  Sauve saved in 2011, uses the OpenG table.

  • Scrolling ListDialog problem

    Hi all

    I just created a simple application with ListDialog - code comes from docs (https://developer.blackberry.com/air/documentation/bb10/create_popup_list_dialog.html)

    package
    {
        import flash.display.Sprite;
        import flash.events.MouseEvent;
        import qnx.fuse.ui.buttons.LabelButton;
        import qnx.fuse.ui.dialog.ListDialog;
        import flash.events.TimerEvent;
        import flash.utils.Timer;
    
        [SWF(height="1280", width="768", backgroundColor="#0D1722", frameRate="30")]
        public class TestApp extends Sprite
        {
            private var myList:ListDialog;
    
            public function TestApp()
            {
                var categoryBtn:LabelButton = new LabelButton();
                categoryBtn.label = "Category";
                categoryBtn.addEventListener(MouseEvent.CLICK, onCategoryBtnClick);
                addChild(categoryBtn);
            }
    
            private function onCategoryBtnClick(event:MouseEvent):void
            {
                myList = new ListDialog();
                myList.title = "Something...";
                myList.addButton("OK");
                myList.addButton("Cancel");
                myList.items = ['Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice', 'Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice', 'Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice'];
                myList.show();
            }
        }
    }
    

    But in the Simulator or device it is not possible to scroll this list... It comes bouncing...

    Someone has experienced this problem?

    funny... I found a solution by myself.

    I created the CustomListDialog class with a single line in the constructor:

            public function CustomListDialog()
            {
                _list.rowHeight = 190;
            }
    

    If rowHeight is less than 190, on the list of scrolling does not work. 190 and more all is well

  • Data binding to DataGrid problem

    Hey guys, I have a quick question for you. I can not get my data appears in my DataGrid, and I probably do something stupid which is at the origin of the problem.

    To quickly explain, I'm out my DB given in my file DBClass, then return of the DBClass as a DataProvider function. When I get the DataProvider to return, I create a table, push my DataProvider inside, and then link to my DataGrid using new ArrayCollection (array). It sounds like a big NUMBER to Exchange around the types of variables, but I've not found an easier way to do it. I find it funny that I cannot bind my DataGrid dataprovider to a typed variable dataprovider, but I suspect it's because it's a spark datagrid and a dataprovider of qnx. If there is a better way, please let me know cause all these types of data are confused the hell out of me.

    In any case, here's the code:

    DBClass.as:

    var result:SQLResult = sqlStatement.getResult();
    var dp:DataProvider = new DataProvider();
    for each(var obj:Object in result.data) {
        if (obj != null) {
            dp.addItem({week:obj["week"], suHours:obj["su_end"], moHours:obj["mo_end"], tuHours:obj["tu_end"], weHours:obj["we_end"], thHours:obj["th_end"], frHours:obj["fr_end"], saHours:obj["sa_end"]});
        }
    }
    return dp;
    

    I don't understand the SQL statement or enforcement because this part is fine. It's just the DP put in place.

    viewHistory.mxml viewActivateHandler:

    protected function view1_viewActivateHandler(event:FlexEvent):void
    {
        var database:DBClass = new DBClass();
    
        var daHistory:Array = new Array();
        daHistory.push(database.getHistory(1));
    
        if(daHistory.length > 0)
            dgHistory.dataProvider = new ArrayCollection(daHistory);
    }
    

    getHistory (1) is back the DP from DBClass.as code listed above, the 1 is just a variable to determine what exactly to the back, so it is not related.

    viewHistory.mxml DataGrid:

    
        
            
                ... some custom itemrenderers that take up a lot of space ...
                
                
                
                
                
                
                
            
        
    
    

    I took out a couple of converters element custom in this last excerpt just to save space.

    Is that all the columns are empty instead of display the data provided in the table. I made the debug to prove that the RFP returned records and daHistory's records before being put in the ArrayCollection collection and defined as the dataprovider, so I don't know where I'll lose my data or setting of something wrong.

    Any help would be appreciated. As I said, all these types of data are a bit confusing, because it's a new language, I learn that I will. Thank you!

    Solved mine once again! I feel like all I have to do is post something here and I find myself the answer soon after. It's not like I've been stuck on this since yesterday, but regardless, it works.

    And to answer my question, Yes, I was going WAY out of how to get my data with too many data types.

    I've simplified the get function in DBClass.as to just return a table:

  • List of the HorizontalFieldManager with scrolling focus problem

    Hello

    I'm doing a vertical list of horizontalfieldmanager with an icon and two text fields, but I'm having a problem when scrolling it. I used a nullField to manage focus. When I scroll to the top everything works well, but when I Ahmed to the bottom of the item appears on the edge of the screen.

    I guess that I did not understand how to manage the focusChange metodh and the metodh of the painting.

    All advice will be appreciated.

    Thank you, Andrea.

    //
        // Main screen for the application
        //
        private class MyMainScreen extends MainScreen
        {
            public MyMainScreen()
            {
                super(Manager.USE_ALL_WIDTH);
    
                for (int i = 0; i<20; i++) this.getMainManager().add(new PanelRow("off", "first text line", "second text line"));
            }
    
            private class PanelRow extends HorizontalFieldManager implements FocusChangeListener
            {
                private NullField nullField;
                private BitmapField icon;
                private ColorLabelField label1;
                private ColorLabelField label2;
    
                public PanelRow(String iconString, String label1String, String label2String)
                {
                    super(Manager.USE_ALL_WIDTH);
    
                    // Add null field
                    nullField = new NullField(NullField.FOCUSABLE);
                    nullField.setFocusListener(this);
                    super.add(nullField);
    
                    // Add bitmap
                    Bitmap offIcon = Bitmap.getBitmapResource("offButton.png");
                    icon = new BitmapField(offIcon, BitmapField.NON_FOCUSABLE | BitmapField.FIELD_LEFT);
                    super.add(icon);
    
                    // Add first and second text lines
                    VerticalFieldManager labelsVerticalManager = new VerticalFieldManager();
                    label1 = new ColorLabelField(label1String, LabelField.NON_FOCUSABLE | LabelField.FIELD_LEFT);
                    label2 = new ColorLabelField(label2String, LabelField.NON_FOCUSABLE | LabelField.FIELD_LEFT);
                    labelsVerticalManager.add(label1);
                    labelsVerticalManager.add(label2);
                    super.add(labelsVerticalManager);
                }
    
                public void focusChanged(Field field, int eventType)
                {
                    invalidate();
                }
    
                protected boolean navigationClick(int status, int time)
                {
                    fieldChangeNotify(FieldChangeListener.PROGRAMMATIC);
    
                    return true;
                }
    
                protected void paint(Graphics g)
                {
                    int oldBackground = g.getBackgroundColor();
    
                    if (nullField.isFocus())
                    {
                        g.setBackgroundColor(Color.CADETBLUE);
    
                        label1.setFontColor(Color.WHITE);
                        label2.setFontColor(Color.WHITE);
                    }
                    else
                    {
                        g.setBackgroundColor(Color.WHITE);
    
                        label1.setFontColor(Color.SLATEGRAY);
                        label2.setFontColor(Color.BLACK);
                    }
    
                    g.clear();
    
                    g.setBackgroundColor(oldBackground);
    
                    super.paint(g);
                }
            }
    
            //
            // Define a new colored labelfield class
            //
            public class ColorLabelField extends LabelField
            {
                public ColorLabelField(Object text, long style)
                {
                    super(text, style);
                }
    
                private int mFontColor = -1;
    
                public void setFontColor(int fontColor)
                {
                    mFontColor = fontColor;
                }
    
                protected void paint(Graphics graphics)
                {
                    if (-1 != mFontColor) graphics.setColor(mFontColor);
    
                    super.paint(graphics);
                }
            }
        }
    

    Then try to create your NullField with getFocusRect override: like this:

    nullField = new NullField(NullField.FOCUSABLE) {
      public void getFocusRect(XYRect rect) {
        getManager.getExtent(rect);
        rect.setLocation(0, 0);
      }
    };
    

    Paint won't help you - you must tell the system to the entire span developed in order to scroll properly. If the above fails, analyze your focusChanged eventType and make sure that your Manager is fully visible on the screen on FOCUS_GAINED. To do this, you need to use getManager () .getVerticalScroll () / getManager () .setVerticalScroll () as well as of your Manager and getHeight() getTop().

  • Scrolling lists problem

    Hello!

    I have a list of simple fixed size created with

      and
    • Tags. I can test on my Bold 9700, but on this device, it can not scroll the list. What is the problem?




         


           


                     

                            
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                

            


      even I have the same peoblem so what I did is

      added the onUp and onDown

      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....

      and in the script, I managed this onUp and onDown to scroll the div

      function scroll(){
      
          var elm = document.getElementById("mainBodyDiv");    var lastFocusId = parseInt(blackberry.focus.getFocus());
      
          switch(blackberry.focus.getDirection()){         case 2 : // up            if(lastFocusId < 1 && lastFocusId > 9) //lastFocusId less than first element and greater than last element                blackberry.focus.setFocus((lastFocusId-1)+"");            elm.scrollTop -= 50; //height of single 
    • element break; case 3 : // down if(lastFocusId > 0 && lastFocusId < 9) blackberry.focus.setFocus((lastFocusId+1)+""); elm.scrollTop += 50; break; }}
    • I recommend you generate javascript dynamically list in a table and give this table as input to the scrolling feature so that even if you want to add elements of the latter or to generate the list based on a response from the server, it will be very useful

  • Vertical scrolling UI problem

    Hello

    I'm just facing an interesting problem with vertical scrolling. All I need is to have a static text as a header that is always on the top of the screen. Everything under it is inside VerticalScrollManager.

    I put it in place and it worked for OS5 and lower. Now, I tried in OS6 and it does not work so this code is probably not the ideal. Could someone corerct me if you please.

    public MyScreen() {
    super(Manager.NO_VERTICAL_SCROLLBAR|Manager.NO_VERTICAL_SCROLL|Manager.NO_HORIZONTAL_SCROLL|Manager.NO_HORIZONTAL_SCROLLBAR|Manager.USE_ALL_WIDTH);
    setTitle("Title");
    
    VerticalFieldManager content = new VerticalFieldManager(Manager.VERTICAL_SCROLL|Manager.VERTICAL_SCROLLBAR) {
    
    protected void sublayout(int w, int h) {
    Field field;
    //get total number of fields within this manager
    int numberOfFields = getFieldCount();
    int x = 20; // I want the fields to be 20 px left of the edge
    int y = 0;
    for (int i = 0;i < numberOfFields;i++) {
       field = getField(i); //get the field
       setPositionChild(field,x,y); //set the position for the field
       layoutChild(field, w-40, h); //lay out the field
       y += field.getHeight()+5;
    }
    setExtent(w-40, h);
    }
    
    };
    
    LabelField topLabel = new LabelField("Always on the top text" );
    add( topLabel );
    
    // many times...
    LabelField allOthers = new LabelField("Other fields..." );
    content.add( allOthers );
    // end many times
    
    add( content );
    
    }
    

    All fields are positioned okay but when scrolling should appear, nothing happane and the cursor disappear under the screen...

    Note: question just the OS 6

    Thanks for any help.

    Jiri

    Finally,.

    I found out the way.

    Pretty simple. Just added

    super.sublayout(w, h);
    

    the first line of the sublayout method.

    So, can someone help.

  • Microsoft Wireless Mobile Mouse 3500 scroll wheel problem

    I have a Microsoft Wireless Mobile Mouse 3500 and am used to clicking the scroll wheel to open a new browser window.  This does not work with this mouse.  Is this a problem or is at - there an update I can find which will allow this work?

    Hello

    Contact the Microsoft Hardware support for assistance.

    http://www.Microsoft.com/hardware/en-us/support

    Hope this information helps.

  • Specialized and custom vertical scrolling image problems.

    I need to create a page of "scrolling credits" portrait in my film, but I can't use the standard of 'credits' tools, as the wording must be of a certain size, fonts, colors and style to match the other images in the film.   I created a 'page', tour credits in a program of the editor and that I imported it into my film assets.   However, when I try to insert in my film, it appears very little first - fitting himself up to the screen.   I then use the ' applied Effects > Motion' then position it tool to enlarge up to adjust the WIDTH of the screen, so that the top of the page "" is visible in the position "start".   I then use ' effects fx > Vertical Image pans to make pan my 'page' to make words seem to scroll to the top down.

    After three attempts so far, I've been making registration b very low resolution, (b) jerky and erratic scrolling movement and (c) not start or stop in the right position.   Not only that, it seems to be draining a lot of processing capability of Adobe Premiere Elements, so that it remains at a standstill, and I have to keep waiting for every order to settle and take effect before I can hit the next button... !

    Does anyone have ideas how I can fix this annoying problem that keeps to the top of my project in full?

    sparkoparkes

    What version of Premiere Elements, what operating system?

    What is the predefined project that you set for Premiere Elements project? You (manually) or project (automatically) been setting the preset project to match the properties of your import.

    Which would seem to not address most of the problems - in other words, create your import to have the same resolution as that of the creation of the project.

    As to apply an effect to roll on your document of credits created outside the project, are you using fx = Presets effects and scrolling vertical Image pans?

    Instead, please review the keyframes of the property found Position as applied effects tab/Applied effects Palette/Motion Panel expanded and position the property.

    Please review and give more information. Questions or need any clarification on the above, do not hesitate to ask.

    Thank you.

    RTA

  • Scrolling group problem: not all the group with scrolling content?

    Helloooow peoplez script wise.

    I was biting my nails on this problem, the last two days and still have not found a solution. Go here:

    I tried to make a window (or Panel actually, because ultimately it must be run from the EI > window > scriptname.jsx), with a scroll bar, which can scroll content in a group beside him. I can get the scroll and all group, but is the problem, just now, that the elements of x in the group, the last get cut. Like this (it is supposed to be 500 buttons):

    Screen Shot 2015-10-13 at 21.40.05.png

    The only way that I was able to get the 'internal' group grow is by not using do not align properties and manually set the .size. I know that the content is here because the last element arises, when I move the last location of points [1] upwards until he reached the top of the group. I tried to refresh the page layout (layout.layout (true); layout.resize (()) to each call of the function onChanging() of the cursor, but without success. Read a lot of forum posts beautiful and discussion by @Marc Autret and other users of scriptUI/extendscript long has this far been without success.

    TL; DR: I'm doing a group with a lot of content that I can scroll with a scroll bar.

    Here is the code snippet, I hope fairly well commented:

    {
    //scroller test
    // uncomment the temp path (replace with some image file path) and the lines inside the populateGrid() function to reproduce my problem better
    // I'm ussing an image 512x288 pixels
    
    
    //var tempPath = "/Volumes/Verbinski/02_SCRIPTING/After_Effects/stockholm/ROOT/EXPLOSIONS/Fireball_side_01/Thumbs/Fireball_Side_01_024.jpg";
    
    
    // create window
    var mWin = new Window('palette');
      mWin.size = [500,500];
      mWin.orientation = 'row';
    
    
    // If you like it, then you better put a scroller on it.
    var scroller = mWin.add('ScrollBar');
      scroller.size = [20,mWin.size[1]-40]
      scroller.minvalue = -5;
      scroller.value = scroller.minvalue;
      scroller.maxvalue = 10000; // tried changing this to all sorts of interesting numbers.
    
    
    //This should move the group, created further down.
    scroller.onChanging = function(){
      grid.location = [grid.location[0],-scroller.value];
    }
    
    
    // "Boundary" for grid (see below)
    var gridArea = mWin.add('panel',undefined,'gridArea');
      gridArea.size = [mWin.size[0]-40,mWin.size[1]-40];
    
    
    // The grid... a digital fronteer... and also container of stuff
    var grid = gridArea.add('panel',undefined,'grid');
      grid.size = [gridArea.size[0]-20,9000000000] // no matter how high I put this, it doesn't change a thing
    
    
    // Just an array for all the images to go
    var clips = [];
    // Total height gets calculated in the populateGrid function.
    var totalHeight = 0;
    
    
    function populateGrid(rows){
      var img;
      for(i=0;i<rows;i++){
      // img = grid.add('image',undefined,tempPath);
      // clips.push(img);
      grid.add('button',undefined,i);
      }
      for(i in clips){
      clips[i].location = [0,(clips[i].image.size[1]*i)]
      }
      // totalHeight = (img.image.size[1]+grid.spacing)*rows;
      // grid.size = [grid.size[0],totalHeight]
      // scroller.maxvalue = totalHeight/2;
    
    
    }
    
    
    // put x number of buttons/images into the grid
    populateGrid(500);
    
    
    // shwo to window
    mWin.show();
    mWin.center();
    }
    

    Reaally hope someone here sees this and can help out me.

    Cheers, Fynn.

    My Control Panel:

    retina 5K, 4 GHz Intel Core i7 iMac

    32 GB of RAM, 512 GB SSD HARD drive

    OSX Yosemite: 10.10.4

    AE: CS6 |  CC 2014: 13.1.1.3

    Aaalrighty, guys. It seems to me have cracked... Sort of...

    David, your version worked quite well, I just modified a bit to get the right calculation.

    The wheel now works as expected and the scroller.maxvalue is calculated as ((number of items) * height of the first item).

    Everything works fine until I have started using the automatic layout manager. The option 'fill' at least makes it really hard to understand the final height of the internal objects. So they must be defined accordingly.

    Indeed, here is my modified code (sorry, @David for resources according to the version string, you may simply copy the scroller.onChanging () and populateGrid() x parts))

    {
    //scroller test
    // I'm using an image of around 512x288 pixels
    
    var tempPath = "YOUR IMAGE HERE";
    
    // create window
    var mWin = new Window('palette');
      mWin.size = [500,500];
      mWin.orientation = 'row';
    
    // If you like it, then you better put a scroller on it.
    var scroller = mWin.add('ScrollBar');
      scroller.size = [20,mWin.size[1]-40]
      scroller.minvalue = 0;
      scroller.value = scroller.minvalue;
      scroller.maxvalue = 3000; // tried changing this to all sorts of interesting numbers.
    
    //This should move the group, created further down.
    var scrollDiary = 0;
    scroller.onChanging = function(){
      var scrollVal = Math.abs(scroller.value)-scrollDiary;
      for(i=0;i		   

Maybe you are looking for