Scroll bar within cell

  • Last update:  2021-05-10
  • I. Description

    When there is too much content in a cell, when previewing the report, the cell will automatically adjust the row height and column width to fully display the cell content. However, sometimes for layout needs, it is hoped that the cell size can be fixed (not enough to display the cell content completely), and the entire content of the cell can be viewed by pulling the scroll bar.

    As shown below:

    1.png

    II. Idea

    In the Cell Element > Advanced > Display value, use the HTML <div> tag and add the style attribute, and then select No Automatic Adjustment and choose Display by HTML of the Display Content.

    III. Steps

    Add a built-in dataset, and set the data at will, as shown in the figure below:

    2.png

    Drag in the data column in the cell, as shown in the figure:

    3.png


    1. Set the scroll bar

    Right-click B2, select Cell Element>Advanced>Display Value, and enter the formula

    "<div style=\"height:60px;width:150px;overflow-y:scroll;\">"+$$$+"</div>"

    As shown below:

    4.png


    2. Cell display setting

    Right-click B2, select Other, select No Automatic Adjustment, and check Display by HTML, as shown in the following figure:

    5.png

    IV. Effect preview

    1) PC

    Click Pagination Preview, the scroll bar is as shown in the figure below:

    6.png

    2) Mobile

    Note: The mobile terminal does not support this function.

    V. Completed template

    Refer to the completed template: %FR_HOME%\webroot\webapps\WEB-INF\reportlets\doc-En\ReportApplication\BasicApplication\Scroll_bar_within_cell.cpt

    Click to download: 

    Scroll_bar_within_cell.cpt


    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy