APIs for Modifying Row Height and Column Width

  • Last update:April 08, 2025
  • Version

    Version Functional Change
    11.0

    Difference from V10.0:

    Added setRowHeight API and setColWidth API.


    setRowHeight

    API

    setRowHeight(row,height)

    To modify the cell row height

      Parameter

    row: number

    height: number

    row: row number

    height: row height

    Return Valuevoid
       Example

    Example 1: In the report block whose object is defined as report, you can set the row height of the third row to 35.

    report.setRowHeight(3,35);

    Example 2: In a general report, you can set the row height of the third row to 35.

    _g().setRowHeight(3,35);

    Example 3: In the dashboard, you can set the row height of the third row in the report block report0 to 35.

    _g().getWidgetByName('report0').setRowHeight(3,35);

    Application

    example

    You can click the button to set the row height of the third row to 35.

    For details, you can download the template

    Modifying the Cell Height.cpt.

    1.gif

    Mobile Terminal

    This API is not supported on mobile terminals.

    setColWidth

    API

    setColWidth(col,height) 

    To modify the cell column width

     Parameter

    col: number

    height: number

    col: column number

    height: column width

    Return Valuevoid
       Example

    Example 1: In the report block whose object is defined as report, you can set the column width of the third column to 60.

    report.setColWidth(3,60);

    Example 2: In a general report, you can set the column width of the third column to 60.

    _g().setColWidth(3,60);

    Example 3: In the dashboard, you can set the column width of the third column in the report block report0 to 60.

    _g().getWidgetByName('report0').setColWidth(3,60);

    Application

    example

    You can click the button to set the column width of the third column to 60.

     

    For details, you can download the template

    Modifying the Cell Width.cpt.

    2.gif

    Mobile Terminal 

    This API is not supported on mobile terminals.


    Attachment List


    Theme: Secondary Development
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    9s后關閉

    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