Removing the Black Frame of a Selected Cell by JS on the Data Analysis Page

  • Last update:August 11, 2025
  • Overview

    Problem

    During data analysis preview, a selected cell will be framed by a black border, which may affect the overall report appearance. So, how to remove this frame?

     gif1.gif

    Implementation Method

    • Method one: You can add a loading end event to the data analysis setting page, and use code to remove the frame.

    • Method two: You can obtain the frame element after preview, and then use code to modify the frame effect. Similarly, you need to add a loading end event.

    • Method three: Instead of removing the black frame that appears when a cell is selected, you can directly modify the border color to make the appearance more visually appealing.

    Example

    Method One: Using the Frame Removing Code

    1. Open the designer, select the template that needs to be edited, choose Template > Web Attribute > Data Analysis Setting, and add a Loading End event in Event Setting, as shown in the following figure.

     1.png

    The JavaScript code is as follows.

    _g().curLGP.hideSelectFrame();

    Method Two: Obtaining the Frame Element

    1. On the report preview page in the data analysis preview mode, press F12 to select the cell and locate the element corresponding to the frame, as shown in the following figure.

     2.png

     3.png

    2. Choose Template > Web Attribute > Data Analysis Setting, and add a Loading End event in Event Setting, as shown in the following figure.

     4.png

    The JavaScript code is as follows.

    $('.fDright').removeClass('fDright'); 
    $('.fDbottom').removeClass('fDbottom'); 
    $('.fDtop').removeClass('fDtop'); 
    $('.fDleft').removeClass('fDleft');

    Method Three: Customizing the Frame Color

    1. Customize the frame color for the cell, choose Template > Web Attribute > Data Analysis Setting, add a Loading End event in Event Setting, as shown in the following figure.

     5.png

    The JavaScript code is as follows.

    $('.fDright').css('background', 'red'); 
    $('.fDbottom').css('background', 'yellow');
    $('.fDtop').css('background', 'blue'); 
    $('.fDleft').css('background', 'gleen');

    2. The following figure shows the preview effect.

     6.png

    Template Download

    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