DataTable Scroll bar Position Changing

Hi,
I have a datatable with scroll bar on 'A' screen and when I go to 'B' screen and come back to 'A' screen again the data table reloads and showing the table from the first record onwards instead of showing the selected n th record by holding the scroll bar state.
Is there any way to scroll the scroll bar of a data table to the particular record either by backend logic or by java script.
I used h:PanelGroup to the data table for scroll bar.

That's getting harder. Put the tables in a block element, e.g. div, and onload set div.scrollTop to the amount of pixels it have to be scrolled. I am not going to give raw code here as you're here in a Java/JSF forum, not a Javascript/DHTML forum. If you still stucks, even after googling on the given keywords, consult DHTML forums like dhtmlcentral.com and dynamicdrive.com.

Similar Messages

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • List vertical scroll bar position change issue

    Hi all,
    List selection makes the list jump (scroll) up moving the selected entry to top any idea on this issue.
    regards,
    karthik

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

  • Custom Horizontal Scroll Bar position on File Open

    Fellow Forum Members,
    I have a lot of PDF files that I want to open in a special way. I want them to open at 150% ZOOM and this was easy enough to setup in the PREFERENCES window.
    However, what is proving to be a big problem is changing how the horizontal scroll bar has a default position all the way to the left. My objective is to have the horizontal scroll bar positioned all the way to the right and at a 150% everytime I open a PDF file.
    The Preferences window doesn't seem to have a horizontal scroll bar position on open setting. Can anyone help me out and tell me how such a custom setting is possible with Acrobat 9 Extended? Any help will be greatly appreciated. Thanks.

    Does anyone have any ideas?

  • Get image Scroll bar position value

    How to get an image component scrollbar position value in flex.
    I have an image component in my application, when i scroll the horizontal scrollbar
    i need the current scrolled position. How to get the scrolled position in an image component.
    Kindly help in this issue.
    Rajkumar.

    Are you sure you want to use setOnScroll to listen to scroll events rather than set the value of the scroll bar position via the tableView.scrollTo api (which I would recommend) or the scrollBar.setValue() api?
    for (Node n: table.lookupAll(".scroll-bar")) {
      if (n instanceof ScrollBar) {
        ScrollBar bar = (ScrollBar) n;
        System.out.println(bar.getOrientation() + ": range " + bar.getMin() + " => " + bar.getMax() + ", value " + bar.getValue());
          if (bar.getOrientation().equals(Orientation.VERTICAL)) {
          bar.setValue(0.5);
    }If you did really, really want to use setOnScroll, then you could do something like this:
    Node flow = table.lookup("VirtualFlow");
    if (flow != null) {
      final EventHandler<? super ScrollEvent> originalScrollHandler = flow.getOnScroll();
      flow.setOnScroll(new EventHandler<ScrollEvent>() {
        @Override public void handle(ScrollEvent event) {
          System.out.println(event);
          originalScrollHandler.handle(event);
    }  Though you would be better off just using an eventfilter rather than using the strange lookup and setOnScroll chaining method in the above code.
    table.addEventFilter(ScrollEvent.ANY, new EventHandler<ScrollEvent>() {
      @Override public void handle(ScrollEvent event) {
        System.out.println(event);
        // uncomment if you don't want the default table scroll events processing to take effect.
        //event.consume();
    });

  • Is there a way to programmatically change the scroll bar position?

    I am wanting to programmatically shift my front panel horizontally at a certain point during execution. I need a way of moving the scroll bar automatically. Does anyone have any suggestions?
    Thanks!

    Use the VI property FP.Origin to scroll the panel in the window.
    LabVIEW, C'est LabVIEW

  • Easy question - scroll bar position in listbox problem

    hello again
    this time my question is simple...
    is there a way to set the initial position of a vertical scroll bar of a listbox?
    sometimes - if i make more runnings - remain in memory the last position...and if the new listbox is smaller then the last one i see a white listbox and i think that something went wrong in my program
    Using LabVIEW 7.1
    Solved!
    Go to Solution.

    Hi gigi85,
    Okay in that case,Please create property node with Multiple lines property, and click on the blue square shown in the diagram and expand it downwards, Labview should automatically add these parameters. added screenshot for your reference.
    Let me know if u've any queries.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13
    Attachments:
    Screenshot_TopRow_PropertyNode.png ‏8 KB

  • ScrollPane vertical scroll bar positioning

    I have a ScrollPane that holds a number of number of sprites. The sprites are like rows and I would like them to fill the width of the ScrollPane.
    My problem is that if there are not enough sprites to fill the vertical space of the ScrollPane, then no Scrollbar appears and there is a narrow gap left on the right side of the ScrollPane. If I make the sprites wider, when the vertical scroll bar does appear some of the sprite is cut off and the horizontal scroll bar appears (I never want the horizontal one to appear).
    Is there a way to move the scrollBars? or perhaps another way to solve my issue?

    assign your sp's horizontalScrollPolicy (and/or verticalScrollPolicy) to "off".

  • Scroll bar position in Content veiwer

    When I look at folios (even the preloaded one from adobe) in content viewer on ipad air 2 (landscape only) the black scroll bar is in the center of the screen. Can anyone fix this?

    Known issue. Being worked on.

  • Scroll Bar Position

    I have an applet which will display 25 columns and n Number of rows. How can I change the cursor postion to a particular row while applet reloads?
    setRowSelectionInterval(int, int) may move the cursor to the particular row. But The scrollbar is still in initial position. I need to change the scroll position.

    Use getCellRect(...) to get the rectangles of any cells you want to display, then create a Rectangle which circumscribes all of these, then use scrollRectToVisible(...) to adjust the view.

  • Spry Horizontal Menu Bar position change in different browsers

    Here is the page: http://pragati.de/index2.html
    There is a Horizontal Spry Menu Bar which is floating right.  In Dreamweaver CS5's Live View, the navigation menu appears perfectly in line with background image and same is the true when previewed in Google Chrome and Safari.  However when previewed in Firefox or Opera, the navigation menu appears a little below the background image and leaves kind of a dent which is clearly visible.  I have not yet tried it in IE.
    I have posted this question before but didn't find any solution.

    Here is the page: http://pragati.de/index2.html
    There is a Horizontal Spry Menu Bar which is floating right.  In Dreamweaver CS5's Live View, the navigation menu appears perfectly in line with background image and same is the true when previewed in Google Chrome and Safari.  However when previewed in Firefox or Opera, the navigation menu appears a little below the background image and leaves kind of a dent which is clearly visible.  I have not yet tried it in IE.
    I have posted this question before but didn't find any solution.

  • Change Height of Web Resource to Get Rid Of Blank and Scroll Bar

    Hi, I am a junior CRM developer. I'm using CRM online.
    I wrote a HTML web resources. In Web Resource Properties, I set the Number of Rows as 20.
    But the problem is: If the form window are maximized, there will be blank under web resource; if the form windows become smaller, there will be a scroll bar on the side.
    I want get rid of blank and scroll bar, automatically change height according to the size of the window.
    I tried checkbox "Automatically expand to use available space", but it didn't work.
    I don't think add CSS to my HTML will work, because CSS in HTML will change the html height, not the container in CRM.
    Thank you in advance.

    You most likely have a malware infection. Run and update the following scanners. (Not all programs detect the same infection.)
    1. [http://www.safer-networking.org/]
    2. [http://www.malwarebytes.org/]
    3. [http://www.spywareterminator.com/]
    4. [http://www.microsoft.com/security/malwareremove/default.aspx]
    If those programs do not do the trick, try to post in the following forum:
    1. [http://www.bleepingcomputer.com[
    Other spyware removal forums can be found in a search.
    Does the issue occur in [[Safe Mode]]?

  • The horizontal scroll bar appears in the middle on Safari.

    Hello.
    I have a problem of Ipad mini
    A few user has the same prolem like me T.T when I checked other users is using Ipad mini or related Ipad series on web.
    and I could not find solution for it,
    The probelm is : the horizontal scroll bar position is changed as below image, the scroll bar appears in the middle on web page of Safari
    after zoom the page out and moving.
    How to fix this problem ?
    I already did it with a few way to fix and it never fix in my side.
    - Resotre factory mode : still happened.
    - Turn off and on Ipad mini : still happened.
    - Clear Cooke and data in safari setup.
       If Clear cooke and data, it just disappeared on web surfing but this is only temporary way, I could meet the problem soon on web surfing.
    Please help me to fix and share some information for it.
    Thanks.

    I am having the same issue. Went to the Apple Store in Boston and the Genius Bar escalated the problem to the Engineers and they could not even solve it. They needed me to send them an image of the issue. I went to another Apple store and the Genius there had much better problem solving skills. He used his own critical thinking and discovered that the horizontal scroll bar sits at the same height. The height is exactly where the split keyboard ends. If you take screen shots and compare...you will find they are all at the same height. He thinks since the keyboard is a new feature they havent worked out the problems yet...and we will have to wait for the update.
    Ever since Steve Jobs has been gone the call to response for issues is getting increasing slower and slower. New products continue to roll out but they all have problems and bugs. Take Maps for instance...they still have not fixed all the issues (even with this 6.0.1 update). The Ipad mini I spend 700$ for and it is such a faulty product. For what I spent I would have thought I would have gotten a great product. I have all Apple products...phone, desktop, laptop, Ipad original, and Mini...but they have done me wrong over and over. It may take months for them to roll out the fix the way the compnay has been operating under Cook.
    When will the fix come....I do not know... best of luck!

  • Put a scroll bar at left side

    Hi all,
    I'm trying to change the side of a vertical scroll bar is set
    on a datagrid,
    e.g.: the defaut side is right and I want to set this
    vertical scroll bar on left.
    Thank you everybody,
    Artur

    The vertical scroll bar position in a datagrid is set in the
    updateDisplayList function.
    what you can do is extending from datagrid and add the
    following code:
    override protected function
    updateDisplayList(unscaledWidth:Number,
    unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    verticalScrollbar.x = 0;
    this code example will only move the scrollbar to the left,
    but i guess you will also have to adjust the content position.
    if you can't access the attribute verticalScrollBar from you
    new class, add the following code above the class definition:
    import mx.core.mx_internal;
    use namespace mx_internal;

  • Scroll bar only scrolls the top ~300 pixels

    The latest update of Nightly is unusable. The scroll bar only changes the top 300 pixels or so of the page. Then the links do not work in the bottom portion, and you can't see the entire page.
    Troubleshooting info:
    "application": {
    "name": "Firefox",
    "version": "36.0a1",
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0",
    "supportURL": "https://support.mozilla.org/1/firefox/36.0a1/WINNT/en-US/",
    "numTotalWindows": 2,
    "numRemoteWindows": 0
    "crashes": {
    "submitted": [],
    "pending": 0
    "modifiedPreferences": {
    "browser.cache.disk.capacity": 358400,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.frecency_experiment": 1,
    "browser.places.smartBookmarksVersion": 7,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20141022030202",
    "browser.startup.homepage_override.mstone": "36.0a1",
    "browser.startup.homepage_override.buildID": "20141022030202",
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "36.0a1",
    "media.gmp-gmpopenh264.lastUpdate": 1414067969,
    "media.gmp-gmpopenh264.version": "1.1",
    "media.gmp-manager.lastCheck": 1414067968,
    "network.cookie.prefsMigrated": true,
    "places.history.expiration.transient_current_max_pages": 104858,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "privacy.sanitize.migrateFx3Prefs": true
    "lockedPreferences": {},
    "graphics": {
    "numTotalWindows": 2,
    "numAcceleratedWindows": 0,
    "windowLayerManagerType": "Basic",
    "windowLayerManagerRemote": true,
    "numAcceleratedWindowsMessage": [
    "blockedGfxCard"
    "adapterDescription": "RDPDD Chained DD",
    "adapterVendorID": "0x0000",
    "adapterDeviceID": "0x0000",
    "adapterSubsysID": "00000000",
    "adapterRAM": "Unknown",
    "adapterDrivers": "RDPDD",
    "driverVersion": "",
    "driverDate": "",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterSubsysID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": false,
    "directWriteEnabled": false,
    "directWriteVersion": "6.1.7601.17563",
    "direct2DEnabledMessage": [
    "blockedGfxCard"
    "webglRendererMessage": [
    "blockedGfxCard"
    "info": {
    "AzureCanvasBackend": "skia",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "cairo"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": false,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.7",
    "version": "4.10.7"
    "NSS": {
    "minVersion": "3.17.2 Basic ECC",
    "version": "3.17.2 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.17.2",
    "version": "3.17.2"
    "NSSSSL": {
    "minVersion": "3.17.2 Basic ECC",
    "version": "3.17.2 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.17.2 Basic ECC",
    "version": "3.17.2 Basic ECC"
    "userJS": {
    "exists": false
    "extensions": [
    "name": "McAfee Security Scan Plus",
    "version": "1.0",
    "isActive": false,
    "id": "{e4f94d1e-2f53-401e-8885-681602c0ddd8}"
    "experiments": []
    }

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • F-03, F.13, F13E GL Clearing Issue.

    Hi Gurus, I am clearing one GL account through F-03, F.13, F13E In this GL account documents are posted in different document currencies but local currency amount for both the line itmes are same. E.g. Document No Posting Date       Amt in Duc     Cu

  • I have been having problems with 2 of my phones

    i have a nokia 6085 and although i have had it a while i havent used it. i have put my vodaphone sim card in it and it recognises it but will not let me phone or text anyone. vodaphone are not to blame as my sim card works in any other phone. it just

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6 In JRE 1.5, the jar files are getting downloaded onto the client machine with it's original names. Example : Server File Name : acm.jar Client File Name : RMacm.jar But in JRE 1.6, the

  • Creating an Apple ID that cannot be changed or retrieved

    Is there a way to create an Apple ID that cannot be changed or looked up?  We're setting up some phones for students and don't want them to be able to find out their Apple IDs or change them...

  • Iweb:  photos blur?  and formatting question

    Does anyone know how to prevent photos from blurring when you publish a page to dot mac? On my photo page, (only) 2 of the photos appear blurry. I have tried to re-publish, to no avail. Also - is there any way to include column formatting in text? I