SlickGrid with fixed first column

Can I lock the first SlickGrid column? So that it always appears during horizontal scrolling, for example, a title bar?

Thanks for the help!

+5
source share
3 answers

I think you can take the .onViewportChanged()following steps in case :

  • Get columns with .getColumns()and save in an array variable arrColumns.
  • Then define the first column.
  • Save data with .getData()in array variablearrData
  • Sorts the arrColumnsplacement of the first column at the beginning.
  • Set columns in new arrColumnswith.setColumns()
  • Reassemble arrDatawith new order arrColumns.
  • .resizeCanvas()
  • .: D

, , , .

, , . , . - , scrollTo() .

+5

( ), JLynch fork. 1.4.3 , 2.0. 2.0 .

:

        ,topPanelHeight: 25
        ,frozenColumn: 2
        ,frozenRow: 5

, , , !

+11

, , , forceFitColumns true options.

, .

0

All Articles