Dashboards & Visualizations

how to freeze 1st column

avikc100
Path Finder

this is my splunk query:

avikc100_2-1709065250711.png

 


this is output:

avikc100_0-1709065118463.png


how can I freeze this 1st column where interface names are showing.
problem is when dragging to right then can not see the interface name

avikc100_1-1709065178383.png

below is source code:

avikc100_0-1709065558757.png

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@avikc100  - You can add custom CSS to your simple XML dashboard to achieve this.

 

Dashboard XML Source Code

 

<form>
  <label>Fixed Column Sticky</label>
  <row depends="$tkn_never_show$">
    <panel>
      <html>
        <style>
          #myTable table td:nth-child(1) {
              position: fixed !important;
          }
          #myTable table th:nth-child(1) {
              position: fixed !important;
          }
        </style>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <table id="myTable">
        <search>
....

 

 

If position: fixed doesn't work, you can try with position: sticky;

 

I hope this helps!! If it does kindly upvote!!!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @avikc100,

for my knowledge it isn't possible to block a column using the scroll bars as on Excel.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...