help with a problem of vertical scroll bar with a list item

Hello. I have a < s:list > base using an XMLListCollection as there the data provider and a very basic itemrenderer. When a row is clicked in the list a function gets the list.selectedIndex then fills some text with more xml data fields. everything works fine... the problem I have is that the vertical scroll bar on the list seems to be "clickable" - as a line in the list. the scroll bar Scrolls normally but when he clicked on the selectedIndex property becomes-1 which is not useful b/c, the value-1 is passed to the XMLListCollection.

any ideas? Cheers.

The default value for SelectedIndex is - 1.  If you have not selected all the items in the list, then it will always return-1.

Here is a sample application, view, if you select an item and then click the scroll bar is not - 1:

http://ns.Adobe.com/MXML/2009.
xmlns:s = "library://ns.adobe.com/flex/spark" >
   
   
        Import spark.events.IndexChangeEvent;
protected function list1_clickHandler(event:MouseEvent):void {}
trace ("Click event:", event.currentTarget.selectedIndex);
}
protected function list1_changeHandler(event:IndexChangeEvent):void {}
trace ("change the event:", event.currentTarget.selectedIndex);
}
]]>
   

   
   
       
   

   

Tags: Flex

Similar Questions

  • Vertical scroll bar position change list

    Hi all

    Selection of the list makes the list (scroll) jump to move the selected entry to the top any idea on this issue.

    Kind regards

    knockaert

    Try it in a simple test case.  I don't think that's the default behavior.

  • 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.

  • long pull down the menu with no vertical scroll bar

    People,

    It's been 3.5 years ago when we had to learn that there is no way to have a long drop down menu control without a vertical scroll bar. See

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=217428&query.ID=395029#M217428

    Now, after that we got LabVIEW 8.6.1 there is still no the ability to remove the vertical scroll bar if there is a 'Vertical Scrollbar Visible' property node for the drop-down list boxes. As already observed in 2006 with the drop-down list 8.2 LV Smercurio, this property node has no effect, probably because of a bug. This behavior is always the same with LV 8.6.1.

    A few days ago a user of our software have complained that the menu items would be missing. In fact, they were not, but rather he oversaw the scroll bar and do not scroll to the bottom of the column - that's why it did not find the menu items. In general, it's pretty annoying if you have to scroll first before you can select a particular item. In most cases, the scroll bar is all just useless since the Panel is large enough to display all menu items at the same time.

    How do you design a long drop-down menu on your UI? Any ideas how to get around the scroll bar mean?

    Sorry for the lengthy post. I'm afraid that you have to use the vertical scroll bar while reading my text...

    Thanks for any input,

    Peter

    Stoeckel says:

    Any ideas how to get around the scroll bar mean?

    I think that's what you're asking.  This works for any named digital control, and I think a small change will be too much work for a drop-down list box.

    Jim

  • Instability of the vertical scroll bar of the Panel

    Win 7 Professional, SP 1, 64-bit on a Lenovo ThinkPad. The vertical scroll bar on the "Programs and features" Control Panel suddenly is so unstable that it is impossible to click on a title. Agitation is present both a Logitech mouse and ThinkPad track point device, well even more so with the mouse. The mouse driver is up to date, and the batteries are charged.  The instability of the scroll bar does not seem to occur in all areas of the Control Panel, but appears on some menus of Windows Explorer, to a certain extent on this page (I have difficulties to access the submit button) and some Internet sites. Word so far.  What do about it?

    Hello

    Thanks for posting your query in Microsoft Community Forum.

    1. You did it no particular change in the computer before the show?

    Please, try the following suggestions and check.

    Method 1: Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows/Start-computer-safe-mode#start-computer-safe-mode=Windows-7

    If the problem does not occur in safe mode or safe mode with network and then places the machine to clean the start State and check if helps you solve this problem.

    Method 2: Run the clean boot

    Put your system to the clean boot state helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    See the link to perform the clean boot.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135/en-us

    Note: See 'How do I reset the computer to start normally after a boot minimum troubleshooting' to reset the computer starts normally after troubleshooting.

    Let us know if the problem still persists. We will be happy to help you further.

    Thank you

  • How to get the vertical scroll bar is displayed for control panel

    Hi there, Im a beginner in Flex and I'm working on my first application for a client. I have the most difficult time to get a vertical scroll bar to work for a Panel control, that I use. Here's the overview:

    1. I have a control of the application with a horizontal layout
    2. I have a Vbox left with 2 panels on top of the other,
    3 - I have a Panel on the right with a bunch of text controls just above another.

    the application looks like this. Think fair spaces and dashes since this wont let me enjoy the areas:

    ______________________
    | - - - - - - - - -| - - - - text - - - - |
    | - - - - - - - - -| - - - - text - - - - |
    | - - - - - - - - -| - - - - text - - - - |
    | ---------------| - - - - text - - - - |
    | - - - - - - - - -| - - - - text - - - - | -browser window ends here
    | - - - - - - - - -| - - - - text - - - - |
    | - - - - - - - - -| - - - - text - - - - |
    ______________________


    MY PROBLEM: I would like the application to stay confined to the browser window and have scroll bars appear in the right panel when text controls contained too long for the browser window. Yet, I can't make it work, Ive tried to use clipContent = true and activation verticalScrollPolicy but nothing seems to make the sign on the right contrain at the height of the browser window.

    I have a feeling it's something really simple so any help would be LARGELY APPRECIATED!

    The best
    Stephen

    I have it! Thanks Darin for work through this with me. Liike looks like, I really need the Hbox, so do the layout of Panel = "absolute" as josh suggested. Then wrap all text with a vbox controls, Viola! I get scrolling as expected! Here's the final MXML:


    http://www.Adobe.com/2006/mxml"layout ="horizontal">











    Here is a bunch of text in a single text control

    ]]>





    Ashraf asdawdd wadmdwad mildm awdn wad I niawfnaf nawfn awfn awifn awf

    adsadwadwadawd

    asdadwavawvvawvaw

    ]]>





    asdasdsav

    asdasdsadwninib

    awnvndzln

    qwanil

    asbnil nl

    ]]>




    Thank you very much!
    s

  • Vertical scroll bar not working not properly on Internet Explorer 11

    The vertical scroll bar does not work on the Favorites menu for example. When you scroll down the Favorites until you can click your choice, it bounces up to the top.

    I have windows 7, IE11 and java. I saw a similar query for vista and the suggestion is to click on "smooth scrolling" in the section advanced options, but this has already been clicked.

    It's very frustrating.

    Something similar is happening under him start / all programs bar vertical, but not as bad.

    Thank you

    Paul

    Hi Paul,.

    Glad to know that the problem is solved.

    Will you please post in the Microsoft Community for any help in Windows and we will be happy to help you.

  • No vertical scroll bar in textarea?

    A vertical scroll bar is not displayed in the textarea tag when the text overflows its vertical size. Is it normal? I tried to use the ' overflow-y: scroll; "and" overflow-y: auto; ' in the .css, nothing helps. It is only a problem in the Playbook browser, and not in FF. What gives? Thank you.

    Exactly... similar problem that happened to me also. So I used the scroll of webkit (I'm able to reproduce letters to display help) for this, but my case is to scroll a page and not to the textarea.

    Please follow the link to learn more

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/code-to-set-a-vertical-scroll-BA...

  • How to force the vertical scroll bar to display on each page?

    Hello

    Is it possible to force the vertical scroll bar appears on each page, even if it is not needed?

    I have a site with pages larger than the browser window, and others which are smaller. The scroll bar appears only on adults and forcing elements from left to right on the left to navigate through the pages.

    Any help would be appreciated.

    Thanks in advance

    VM

    In the section header of Page Properties try adding the following code:

  • ADF faces table resets the position of the vertical scroll bar

    Hi all

    I have a table on a page with 1000 records adf and when I try to see the records in the middle of the table, for example, the vertical scroll bar returns automatically to the top position.

    Any ideas would be appreciated!

    Thank you

    JDeveloper version: 11.1.2.3.0

    Published by: lorpad on November 29, 2012 12:59

    Published by: lorpad on December 5, 2012 12:26

    Just checked in my application (11.1.2.3, 1000 + lines) and it works as expected.
    You can try to reproduce this problem with simple test cases and if it works then compare table and properties of VO.

    Dario

  • vertical scroll bar in AdvancedDatagrid

    Hi all

    I had an AdvancedDatagid with 100 rows and grouping.

    After the application starts, the vertical scroll bar is not displayed. but after that, to develop a single entry and close it again, the scollbar is illustrated.

    When I force the vertical scroll bar life the command verticalScrollbarPolicy, the scollbar is shown but turned off. Once again, after expand and close one entrance, the scollbar is enabled.

    I guess, the AdvancedDatagid has no idea how many lines are available after reunification. also navigation keys do not work correctly. Up arrow works very well, but isn't the arrow down. But when the scroll bar is correctly displayed, the navigation keys works perfectly.

    After extended and close looks the adg calls that a method and the lines will be calculated. According to this update, ther scrollbar appear correctly.

    someone can tell me, how can I solve this problem?

    In the applicationComplete handler I call the groupCollection.refresh () method and the AdvancedDatagrid.refresh () method.

    Thanks advanced

    Frank

    I think that you are faced with a https://bugs.adobe.com/jira/browse/FLEXDMV-2426 which is fixed now.

    If you think that's a different issue, please log a bug.

  • Dashboard area vertical scroll bar

    I need to place a table bi report area of fixed size on my dashboard page. The report will be generally more lines that can be found in the space available if I want to use a vertical scroll bar to allow the user to view the entire report.

    The report will be no more 10-20rangs so I don't want to use pagination if I can help it. I would like a vertically scollable region on my dashboard. Is this possible? I don't seem to be able to find previous examples of this but would be surprised that he has not done before.

    TIA.
    Paul

    Hi Paul,.

    You do not have this feature by default, we can do this by using an IFrame like this.

    [Iframe src = saw.dll? Go&path=/shared/sample%20Sales/test/product%20Sales width = 300 height = 500 scrollable = yes >

    [Note: replace space] [with html tags >]

    In the path % 20 is used for white space and mention your path to the report, by adjusting the width and height, you can set the report accordingly

    Two ways you can do,

    Create table view, save the view.

    (1) go to the narrative mode add the Iframe it and specify the path of the report and in the layout made add narrative display, remove the table view.

    or

    (2) to change the dashboard, add text, and enter the code Iframe the report path.

    In both cases do not forget to check HTML.

    Thank you
    Vino

    Published by: Vinodh NK on October 4, 2010 03:12

  • Horizontal &amp; vertical scroll bar on Image-Item

    Hello
    I have an image issue... I put a button to zoom-in and zoom-out, but I noticed that when I zoom-in, I see only the top left of the image.
    How can I insert scrolling both vertical and horizontal bars so that the user can see the rest of the zoomed image?
    Any clue?

    Thank you!

    Pezzo,
    You can display bars vertical and Horizontal scrolling on the Image_Item by setting properties "Show vertical scroll bar" and 'Show horizontal scroll bar' to 'yes '. Unfortunately, you can't dynamically set these properties so that they appear only when you zoom in on the image. :-(

    I hope this helps.
    Craig...

    Published by: Silvere on October 23, 2008 09:06

    After I clicked 'Save the Message' a thought struck me that you could have two Image_Items in your form. The one with the scroll bars and the other without. Your Zoom button you could switch back and forth between the Image_Items so it would give you the effect to activate the scroll bars and turn off when you zoom / zoom back in the picture. :-)

  • Adobe edge animation shows unwanted vertical scroll bar in firefox only

    someone has any idea how to lose a vertical scroll bar on a site where I built an advanced adobe reactive animation. on all other browsers the overflow: hidden works perfectly. only in firefox make a scroll bar appears. little help please. the site is http://www.drotardesign.com/dd/about.html

    d

    I doesn't seem to work if you apply too full: hidden in the object tag.
    It doesn't work if I add this attribute to the body of the animation.
    You can consider using an iframe that have scrollbars hidden instead of an object tag.

  • move the vertical scroll bar in a table

    Hello

    In my VI front panel contains a table of results with the visible vertical scroll bar.  When the program runs a performing a test, I am inserting a line every time the captured result.  The row is inserted in the lower part, and when all the visible lines are met you can not see the final result.  What I want to do is either focus on the last row to move the vertical scroll bar or move programmatically control scrollbar itself.  Is this possible?  If this is not the case, what is the property node that I need to display the last line of a table.  I have inserted the data at the top of the table, but this isn't really what the standard application programs do!

    Thank you

    Martin

    See attachment...

    Dan

Maybe you are looking for

  • How can I mark downloads so I know what they are?

    When I download a file/photo/program he named the downloaded file that is not recognized by me. E.g. A photo would be labelled "Record-image (11) .jpg downloading." How will I know what it is if I open it.

  • Optical drive disappeared

    Hi all Please can someone advise on this annoying situation! My CD drive disappeared from the workstation and grabs a CD does nothing. I get this error; TSST corp cddvdw su-208fb has a driver problem when running to troubleshoot. But does not help to

  • implementation of the letters for external hard drives

    I have a new external hard drive and when I plug it, the computer will beep, but when I open my computer, there is no indication of the letter where the external hard disk and I can't open it to see or access what is on it. He worked for some time as

  • Internet - connection drops with my Toshibha laptop/internet connectivity issues arrives and stops randomly

    Original title: Internet connectivity my computer toshiba laptop windows 7 just started to fall sharply internet all in a show that is to connect to the internet all my other devices all always online - internet comes back randomly and goes off rando

  • WAY of DEBUGGING of blackBerry Smartphones

    Is there a debug mode on blackberry? If yes how? It looks like a newspaper that we can have when bb continues to work to find out which application is causing the bb to stop working, so that we can delete it and enjoy the bb again! Thank you.