Datagrid scrolling problem

I'm trying to create a contact search/selection component
that works somewhat like a combobox (more like SuperComboBox
http://blog.strikefish.com/blog/index.cfm/2008/3/21/Flex-Smart-Combo-aka-look-ahead-combo
See sample at
http://www.eval.rmc.psu.edu/dgt/DataGridTest.html
Source view is enabled.
Basically, after the user types a few characters of the last
name, a datagrid (separate component) is popped up and presents a
list of matching contacts. The component includes view edit add
buttons, too (which are not active in the included example).
This all works great except for a couple of problems with the
popped up datagrid. I've tried both the standard and advanced dg's
and the both act the same.
If the number of rows returned exceeds the area of the
datagrid (12 rows in the example), the datagrid, as expected,
displays a vertical scroll bar. The scrollbar/datagrid doesn't work
properly at that point, though. Clicking the down arrow or in the
scrollbar track or the down arrow DOES NOT scroll the data.
Grabbing the slider bar and dragging it down DOES scroll the data
down. However, when I do scroll down using the slider, clicking on
a row does not fire the itemClick event, and the grid scrolls up to
the first 12 lines and highlights a row in the first 12 rows. CLICK
does get fired but always returns a row between 1 and 12.
Now, ideally, the user is going to type 3 or 4 characters of
the last name and zero right in on the contact they're looking for
without the need for scrolling, but there are always the outliers
like 'Smith' that return a large number hits (the example uses PA
Legislators offices, so it's not quite representative of the
end-use data set). Regardless, the datagrid object doesn't appear
to work correctly when it's a component -- I'm not sure if it's a
bona fide bug, or the whether it's that the grid is a component,
contained in a canvas, or being popped up that's the problem. More
likely, my flex newbie self just doesn't have some vital attribute
set correctly, or I'm doing something else that's not correct.
Any insights would be greatly appreciated.
Thanks,
want-a-dw
Sample code included.
Windows XP SP2
Flex Builder 3.0.205647
Same results with these browsers/player versions.
Firefox 2.0.0.17, Flash Player 9.0.124.0 (and 9.0.115.0)
IE 6.0.2900.2180, Flash Player 9.0.124.0 (and 9.0.115.0)
Chrome 0.2.149.30, Flash Player 9.0.124.0

> That is definitely incorrect behavior.
> Does this happen in a simple test app? I think I have an
example I can try with, I will post back what I find.
Yes. There is an example of the behavior at
http://www.eval.rmc.psu.edu/dgt/DataGridTest.html
and source code view is enabled. Thanks for your help.

Similar Messages

  • Datagrid scrolling problem when different items are in the same column

    I have a datagrid which I am populating with different items (LinkButtons, Images, Labels). However when there are different types of items in the same column and when i try to scroll everything gets messed up (Images get overlapped with each other or the labels get overlapped with images).
    I am overloading the "IDropInListItemRenderer" to create different types of items in each cell and I am overloding the "updateDisplayList" function
    Any ideas as to why the items get messed up during scrolling? Is there some other preperty of IDropInListItemRenderer that should be overloaded?

    Hi Subeesh Arakkan,
    Thanks. This is the exact problem that I have. Althought my overloaded functions are a little different and Im trying to resolve it. But htis is a good lead.
    Thanks,
    Prashanth

  • Datagrid scroll problem

    Hi guys,
    I know this question's been asked before, but none of the
    solutions work for me. Here's the situation...
    I'm updating a datagrid regularly, and then setting it's
    vertical scroll position = max vertical scroll position. Which is
    fine for the most part.
    However, when rows are more that one line long, it messes up,
    and never shows the whole of the last row.
    I've tried calling datagrid.validateNow(); before I do the
    position setting, and also tried setting an updateComplete event
    that will run the position update in a callLater();
    Any ideas for other things to try?
    Thanks!

    With DataGrid, the verticalScrollPosition can use the row
    index. So try:
    dg.verticalScrollPosition = dg.dataProvider.length;
    Or something close to that.
    Tracy

  • Datagrid Scrolling Problem.. Does not fit into Parent Container..

    Hi All,
           I have a module and module contains only one datagrid. I am adding this module to tab navigator dynamically in the next index. I am using Text as Item renderer in the datagrid and the row height will change depending upon the data diplyed on the Text. When the data populate in datagrid the datagrid going beyond the containers layout. i.e height is not fit into parent container. I am using Canvas as parent container .. Please find the below attached pictures and you will get to know what is my problem?
    Please help me to get out from this issue.. It is urgent..

    Thanks for quick reply
                   Here I am adding this module to canvas and the canvas is also dynamic . As you said "customize the measure() method in Text control and return the correct measuredHeight based on the explicitWidth."  what is the relation between Text control height and datagrid? Datagird should take it's parent container width and heights.  I am newbie to this Flex.. can you please explain it briefly. And if you have any Other way to do this please tell me .. it is very helpful to me.. Can you please post cusomized measure method if possible. please

  • DataGrid Horizontal Scroll Problem when datagrid contains Item renderer

    I have datagrid with horizontal scroll policy enabled. Grid
    contains some item renderer also.One of the item renderer is
    datefield when i select a date from the datefield and say the
    adjacent cell of the grid also contain datefield itemrenderer
    and i am selecting date from that itemrenderer also.When i
    scroll horizontally the date in the itemrender changes to any one
    of the two itemrenderer.Some time it works fine.I am getting the
    issue for combobox itemrender also.Can any one help me to solve
    this issue.

    "happybrowndog" <[email protected]> wrote in
    message
    news:ge11ag$jdo$[email protected]..
    >
    quote:
    Originally posted by:
    ravi_bharathii
    > I have datagrid with horizontal scroll policy enabled.
    Grid contains some
    > item
    > renderer also.One of the item renderer is datefield when
    i select a date
    > from
    > the datefield and say the adjacent cell of the grid also
    contain datefield
    > itemrenderer
    > and i am selecting date from that itemrenderer also.When
    i scroll
    > horizontally
    > the date in the itemrender changes to any one of the two
    itemrenderer.Some
    > time
    > it works fine.I am getting the issue for combobox
    itemrender also.Can any
    > one
    > help me to solve this issue.
    >
    > Ravi, I am having a similar problem. I subclass a
    TextInput as an
    > itemrenderer for a column in a datagrid. My subclassed
    TextInput checks
    > to see
    > the value in the overriden set() method, and depending
    on the value, sets
    > the
    > background color of the TextInput to green. When the
    datagrid scrolls
    > horizontally, some unrelated cell colors also change
    green and some of the
    > data
    > gets duplicated in the cells. The underlying data
    provider's data is not
    > confused however. Seems the rendering is screwed up when
    the Datagrid
    > scrolls.
    >
    > Did you find a solution to this problem? I think
    Datagrid is a piece of
    > screwed up code.
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Q2

  • Still the same issue: Scrolling problem in itunes w/ dual screen setup

    Hey there,
    I am getting really ****** here. For 2 months this problem has been bugging me. It seems to randomly appear and disappear.
    Just have a look what is happening here: http://www.youtube.com/watch?v=N2m4G6c2Tqo
    I basically tried everything.
    1.Reinstalled Windows from scratch twice!
    2 Reinstalled Itunes a couple of times - clean install - tried different versions. Yea, got the latest one now.
    3. Tried different VGA drivers. Got the latest Intel driver installed.
    The problem has been gone for a couple of weeks now ever since I uninstalled a Windows update called U2711 Dell Display driver (The U2711 is my current LCD). That was just a 80KB file that messed Itunes up.
    Well, I believed I found the problem (hail system restore) but nope. Today it started happening again. I even have Windows Update deactivated for that reason so no changes have been made to the system in the last couple of days! It worked fine yesterday.
    So again: Same scrolling problem. And it only happens on my second large 27" screen. On the notebook screen it works just fine.
    Guys, I really need help. I'm about to curse Apple and Microsoft at the same time.
    Cheers
    K

    Since I am that furstated I started trying really unorthodox methods to resolve the problem.
    I just started Itunes in compatibilty mode (Windows XP SP3) and for now it seems to be working without that annoying bug!
    Anybody know what that means?!

  • Does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

    does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

    does anyone has the same scrolling problem? My macbook air 13''(2010) running lion, when files in a folder arranged by kind, every scrolling paused for a second..?

  • Persistent Scrolling Problem

    I have a two-finger scrolling problem with my 5- day- old Macbook (10.5, Firefox latest version). It was suggested in this forum that I turn off Horizontal scrolling. I did that, in fact I think I tried every combination of settings on the
    Keyboard & Mouse page, but the scrolling is still erratic. It jumps and stalls and
    then (occasionally) works. This happens on line or in documents. I wish I could determine if this is a software or a hardware problem. If it is hardware I need to return this unit real quick. I've been everywhere on the net looking for a software fix or update, but all I have found are add ons that will probably lead to more problems. I don't want to go through the aggravation of a return if I can help it.
    I'd appreciate any suggestions. Thanks Bill
    Now the cursor is acting funny! I can't fix these lines above.

    ok, dude, dont treat my reply as answer, but im just suggesting..why dun u plug in a normal mouse for gaming anyway?
    1)clicking a lot kills the batteries, and also wear out the clicking mechanism.
    2)the scrolling is too sensitive on windows (my exp.) and it switches the weapon unexpectedly all the time (left 4 dead 2)
    3)as u said, its windows! mac hates PC, just think about it, they intentionally hold up the start up time for windows on boot camp, so what quality do u expect with all the mac hardware on WINDOWS??
    I personally plug in a different set of keyboard and mouse to play games on bootcamp, cos the keys are still confusing for me, and USB HIDs dont need batteries, be green!

  • Datagrid scrolls on change or click event - why?

    Hi,
    How do I stop my datagrid scrolling one line when I click on the top row?
    This happens with change, itemClick, and itemDoubleClick.
    It does not scroll on rows other than the top row.
    private function columnClick(e.ListEvent):void
    if e.columnIndex==0)
    DataGrid id= "dg" change="columnClick(event)"
    Any help would be much appeciated.
    Ian.

    You can only accept invitations and send invitations from the Calendar app, with an MS Exchange account on the iPhone.

  • T43 Vertical Scrolling Problem (not just Firefox)- Any official response from Lenovo

    After searching the forum, i have not been able to find any response from Lenovo as to how to correct this problem.
    Incidentally, my "occasional" vertical scrolling problem occurs in any browser,  IE7, Firefox3, Opera9 (at least those 3) as well as Windows applications with a vertical scroll bar like Windows Explorer.
    This only started to occur very randomly around 6 months ago.  But as of late it is occuring more often.
    The only work-around
    http://blog.jonschneider.com/2008/03/workaround-th​inkpad-gets-into-always.html 
    might indicate that it is a possible hardware problem.
    However, I have to say that I rarely use the laptop scrolling buttons and 99.9% of the time, latetly, I use a Logitech laser USB mouse for scrolling purposes. 
    As another possible work-around (if you are using an external mouse) is to uncheck the enable virtual scrolling in the touchpad properties window. 
    I certainly hope it is not a hardware problem, as the warranty on my T43 ran out a long time ago.
    btw, I am running Windows XP Pro XP3.
    Moderator Note; added system type to subject
    Message Edited by andyP on 07-27-2009 09:32 PM

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • How do you fix a scrolling problem on Apple TV?

    When I click the remote once, it scrolls to end of row or column.  I've restarted via remote, unplugged (restarted), restored to factory default = still have scrolling problem.  Tried 2 different remotes, same problem with each.  Tried unparring then reparring = no joy.

    Update your Adobe Flash player: Adobe Flash Player 16.0.0.305.

  • Vertical Scrolling problem in Safari

    I'm currently having an odd vertical scrolling problem in Safari.  This issue is not reproduced in Chrome or Firefox.
    I've been able to reproduce this issue doing something very simple:
    I have a browser wide rectangle with a solid color.
    Beneath that I have a browser wide photo.  (Rectangle set to browser edges and then fit to fill with photo.)
    And beneath that I have another browser wide rectangle with a solid color.
    Then I scroll.
    Once the photo (the middle element) reaches the top of the screen I have shut the scrolling off so the photo will stay static. (Initial motion 1 / Final motion 0 set in the "Fill/Scroll" tab - and the key position is set so it stops at the top of the browser.)  As expected, the lowest box continues to scroll upwards and cover the static photo.
    This very simple effect is flawless in Preview mode, Chrome, and Firefox.
    Yet in Safari, the photo, once it reaches its resting spot, does stay static, but seems to jump and jitter all over the place while I continue scrolling and the below content covers it.  (In the other browsers it's super solid like a real static background.)
    I've read there are some parallax scrolling bugs in Safari Mavericks.  But I'm still in an older operating system using 10.8.5 and Safari 6.0.5.
    Any suggestions or work arounds on how to correct this? (Again, I'm controlling the scroll using the scroll tab found with "Fill". Should I also be using the one found under Scroll Effects?  What the best one to use? Although it does work in the other browsers… so…  maybe I'm not doing anything wrong and this really is a Safari problem.)
    Thanks you.

    Hi
    Please share the site url, I will have a look.
    Thanks,
    Sanjit

  • Mouse scrolling problem

    My iMac is around two years old, and I'm on my third mouse. Why? Because of the scrolling ball. The present mouse scrolls in all directions except down. But previous mouses have stopped scrolling in more than one direction. I have read articles (including the stuff from Apple Support), and I have, I think, tried just about everything (except take it apart, as one article instructed). The mice work fine for a while--then come the scrolling problems. I've tried rubbing the ball (mouse upside down) vigorously on a lint-free cloth, and I regularly (when problems inevitably arise) clean the ball with alcohol and a Q-tip. The latter does get the ball pretty clean, and it works for a while; but eventually even this doesn't correct the scrolling problem (as is the case right now). So, unless someone can give me a suggestion that might work (with Mighty Mouse), can anyone recommend a non-Apple mouse--something not too expensive but of good quality?
    Thank you,
    Carl Kalwaitis

    Hi Carl, I used mice (Mighty included) but always went back to the trackball. You don't move your wrist and it is very precise. I have had the same trackball for three years and my Mighty Mouse (which came with my new iMac) is still in it's original packaging. I have a Logitech Marble Mouse. It has all the scrolling and other functions that the MM has. Give it a try and save yourself some exasperation.
    M.

  • HT6162 IOS 7.1 creates scrolling problem?

    Upgraded my UK iPhone 5S 64GB to ios 7.1 yesterday. I have been facing page scrolling problems in all applications (Bloomberg, BBC, Safari, FT, LinkedIn, FaceBook...all applications). The problem is easily reproduced by keeping your finger on the screen when the page to scroll is displayed and moving the finger slowly to scroll the page. The page jumps in direction opposite to the expected.

    Hey, I have an iPhone 5 64Gb just updated to iOS 7.1 (11D167) . Various apps all have the same scroll problem. It's amost like 1.5 cm from the the bottom of my screen, an invisable line across the phone where swiping across up or down causes the the normal smooth motion to be jumpy. This has only just happened after the latest iOS update. I have also noticed touch senstivity issues when using the keyboard in some older apps causing key strokes to be missed or even double pressed when only pressing once, and number keys to not work also. My current work around is to type the txt or numbers into notes app, then cut or copy the txt or numbers into the app i'm  using. My other work around for the scroll issue, is to use asistive touch and create a scroll gesture.
    Hope there is a fix for this soon. I'm not totally convinced this is a hardware issue. it's too coincidental these issues just happend to occur after the latest update. Gone through the normal power cycle, soft reboot holding home button and power button for 10 secs, but makes no difference.
    I've turned back on the' automatically send' diagnostics & usage setting in general settings hoping this will contribute to a fix.

  • HT201380 keep having scrolling problems with Maverick on both iMac and Mac Pro despite downloading mail software update

    Have scrolling problems with Maverick despite downloading mail update on both IMAC and Mac Pro
    Have to reboot and it helps for awhile then stalls again

    The Mac OS X 10.4.7 Update introduced connection issues as a result of (according to the documentation) "Mail now supports connecting to mail servers through a SOCKS proxy". This probably has nothing to do with your problem, but it'd be worth going to System Preferences > Network and making sure the SOCKS Proxy is not enabled in the network configuration used to connect to the Internet.
    Also, it looks like the crashes you're talking about are actually freezes, i.e. Mail becomes unresponsive rather than quitting unexpectedly. In Mail, open Window > Activity Viewer, and see whether Mail displays there what it's doing when it freezes. Actually, you may be able to avoid having to force quit Mail by canceling whatever it's doing (by clicking on the red stop icon of the activity).
    Reinstalling Mail will probably accomplish nothing, but it might be worth reinstalling the Combo Update for the type of machine and the version of Mac OS X you're using (which you would have to do anyway if you wanted to reinstall Mail):
    Mac OS X 10.4.7 Combo Update for Intel
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, and no applications should be running while installing it.

Maybe you are looking for

  • How do I use logic as a mulit timbre sound module???

    Whats up people, Im trying to trigger all the sounds in logic via a hardware controller (mpc) separating everything on separate channels. I got it to read on just one channel at a time, but multi?? Forget about it.... I read other posts in regards to

  • Backup problem of Oracle XE

    Hi, Greetings. OS: windows XP DB: Oracle 10g xe I wanted to backup the xe database. Firstly, I chose the simplest way according to the 2day DBA, clicking the "*backup database*" menu item. But I only got a popup dialog, showing messages like "*The NT

  • Mouse wrangling, can the mouse be confined to an area of a swf

    I want to be able to make the mouse only able to move around on part of the stage namely the bottom 75px. So I want ot to be able to move 100% on the X axis but I want to restrict the movement along the y axis. Is there a way to do this without using

  • Dv7-1464nr How to remove keyboard after a spill ?

    A friend had a spill all over the keyboard. Now the laptop won't boot. How do I remove the keyboard? in the bottom there are like 6 m2.5x12 screws one of marked keyboard, about 18 m2.5x3. 3 of are under dvd ?? 

  • How to load oracle data into SQL SERVER 2000?

    how to load oracle data into SQL SERVER 2000. IS THERE ANY UTILITY AVAILABLE?