Skip to content

Sticky rows #404

Open
Open

Description

@jurriaanschrofer

Hi guys,

First of all, thanks for this awesome gem :-)

I have been looking for a way to implement sticky rows, unfortunately without success. If this is not a feature of the gem that's all fine of course, but if it is, could you please point me to the source code location?

Since I expected it to be a part of the gem I have been looking, alas to no avail.

Thanks in advance

Activity

  1. weshatheleopard commented on May 14, 2022

    @weshatheleopard
    Owner

    @jurriaanschrofer Can you be more specific as of what "sticky rows" is?

    Also, can you create a blank workbook, make these "sticky rows" in it and attach it here? Then I can look how to implement that.

  2. jurriaanschrofer commented on Aug 9, 2022

    @jurriaanschrofer
    Author

    @harsh183 indeed, exactly that. Thanks

  3. amamrenko commented on Jul 12, 2024

    @amamrenko

    any news about that feature?

  4. mheiligers-godaddy commented on Mar 13, 2025

    @mheiligers-godaddy

    Edit: actually it's on the Wiki

    The answer is in #312. I created a helper method for my purposes:

      def freeze_pane(row, col)
        worksheetview = RubyXL::WorksheetView.new
        worksheetview.pane = RubyXL::Pane.new(:top_left_cell => RubyXL::Reference.new(row, col),
                                              :x_split => col,
                                              :y_split => row,
                                              :state => 'frozenSplit')
    
        worksheetviews = RubyXL::WorksheetViews.new
        worksheetviews << worksheetview
        @sheet.sheet_views = worksheetviews
      end
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions