Wednesday, February 27, 2013

ADF: No Vertical Scrollbars for Table/Tree


Below is the way to eliminate vertical scrollbars from ADF Table/Tree component:

autoHeightRows 
This property suggests that, the height of the component can grow to a maximum of 'autoHeightRows' after which a vertical scrollbar is displayed.

Problem: But even after specifying the value in autoHeightRows or assigning it the value of model data size (e.g. list size), vertical scrollbars are visible after certain limit.

Resolution: Assign the same value to "fetchSize" property as specified for "autoHeightRows".

14 comments:

  1. Hi,
    Can you please give me solution for removing/not displaying Horizontal scrollbar also..

    ReplyDelete
    Replies
    1. Horizontal scrollbars can be eliminated by using <af:panelGroupLayout id="pgl4" layout="vertical" or StyleClass property as "AFStretchWidth" (But make surrounding layout is not scroll)

      Delete
  2. I have already set StyleClass Property as "AFStretchWidth" before only.As i was unable to remove the scrollbar,atlast asked you here on this blog.So can you please suggest me any other ways to remove Scrollbar

    ReplyDelete
    Replies
    1. Can you provide me the snippet of jsff/jsf?

      Delete
    2. i can't see snippet, do you mind pasting it again?

      Delete
  3. I have published my snippet here,but it is not visible.
    So I am mailing you.Please check it once.

    ReplyDelete
  4. Hi,

    I have done what you said so one page load there is no additional vertical scroll bar with table.

    but once i clicked on additional information icon(which i used as a detailed stamp) and vertical scrollbar appears.

    Please provide me the solution to remove scrollbar in such case.

    ReplyDelete
    Replies
    1. Just want to add that i have also applied below property:
      scrollPolicy="page"

      Delete
    2. Can you paste the section used inside detailed stamp? panelgrouplayout vertical inside detailed stamp should help.

      Delete
    3. I have send you an email at lspatil25@gmail.com with subject "Detail stamp code"..as i am not able to paste the code

      I will wait for your reply.

      Delete
    4. Hi,
      Could you provide update?

      Delete
    5. hello sumit
      i am facing the same issue , can u please tell me what u had done to solve that problem??

      Delete
    6. Issue is still not resolved..so i am also waiting for reply of LSP

      Delete
  5. use the following in the table
    rows="#{bindings.xxxx. estimatedRowCount}"
    fetchSize = "#{bindings.xxxx. estimatedRowCount}"
    autoHeightRows= "#{bindings.xxxx. estimatedRowCount}"
    and in vo tuning section fetch all rows at once and rangesize to -1 in bindings file

    ReplyDelete